Bug 165420 - New port: devel/py-importlib Backport of importlib.import_module() from Python 2.7
Summary: New port: devel/py-importlib Backport of importlib.import_module() from Pytho...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Jason Helfman
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-23 13:30 UTC by Alexandros Kosiaris
Modified: 2012-02-24 18:40 UTC (History)
0 users

See Also:


Attachments
py-importlib.shar (2.15 KB, text/plain)
2012-02-23 13:30 UTC, Alexandros Kosiaris
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandros Kosiaris 2012-02-23 13:30:06 UTC
This package contains the code from importlib as found in Python 2.7.
It is provided so that people who wish to use importlib.import_module()
with a version of Python prior to 2.7 or in 3.0 have the function readily
available. The code in no way deviates from what can be found in the 2.7 trunk.
Comment 1 Jason Helfman freebsd_committer freebsd_triage 2012-02-23 17:35:26 UTC
Responsible Changed
From-To: freebsd-ports-bugs->jgh

I'll take it.
Comment 2 Jason Helfman freebsd_committer freebsd_triage 2012-02-24 00:03:43 UTC
It appears that this can't be built against python27:

===>   py27-importlib-1.0.2 depends on file: /usr/local/bin/python2.7 - found
===>  Configuring for py27-importlib-1.0.2
Traceback (most recent call last):
   File "setup.py", line 6, in <module>
     raise Exception("importlib is included in Python 2.7 and newer for 2.x")
Exception: importlib is included in Python 2.7 and newer for 2.x
*** Error code 1

Stop in /a/ports/devel/py-importlib.


I edited the Makefile to only build between 2.3 and 2.6 and it built with no issues.

USE_PYTHON=	2.3-2.6

Is this enough, or should it require a CONFLICT, as well?

Thanks,
Jason

--
Jason Helfman         | FreeBSD Committer
jgh@FreeBSD.org       | http://people.freebsd.org/~jgh
Comment 3 Jason Helfman freebsd_committer freebsd_triage 2012-02-24 00:05:36 UTC
State Changed
From-To: open->feedback

waiting on feedback from contributor...
Comment 4 Alexandros Kosiaris 2012-02-24 09:35:00 UTC
On Fri, Feb 24, 2012 at 2:03 AM, Jason Helfman <jgh@freebsd.org> wrote:
> It appears that this can't be built against python27:
>
> =3D=3D=3D> =C2=A0 py27-importlib-1.0.2 depends on file: /usr/local/bin/py=
thon2.7 -
> found
> =3D=3D=3D> =C2=A0Configuring for py27-importlib-1.0.2
> Traceback (most recent call last):
> =C2=A0File "setup.py", line 6, in <module>
> =C2=A0 =C2=A0raise Exception("importlib is included in Python 2.7 and new=
er for 2.x")
> Exception: importlib is included in Python 2.7 and newer for 2.x
> *** Error code 1
>
> Stop in /a/ports/devel/py-importlib.
>
>
> I edited the Makefile to only build between 2.3 and 2.6 and it built with=
 no
> issues.
>
> USE_PYTHON=3D =C2=A0 =C2=A0 2.3-2.6
>
> Is this enough, or should it require a CONFLICT, as well?
>

Hello,

Seems like I misunderstood the USE_PYTHON directive and consequently
the received errors in my tests.

The change you performed should be adequate though. I doubt a
CONFLICTS is necessary

Could you also please change the the first line of the Makefile from

New ports collection makefile for:	py-celery

to

New ports collection makefile for:	py-importlib?

I plan to submit py-celery as well after py-importlib is accepted
since it requires it and copy/paste betrayed me. Sorry about that.
Comment 5 dfilter service freebsd_committer freebsd_triage 2012-02-24 18:34:54 UTC
jgh         2012-02-24 18:34:39 UTC

  FreeBSD ports repository

  Modified files:
    devel                Makefile 
  Added files:
    devel/py-importlib   Makefile distinfo pkg-descr pkg-plist 
  Log:
  New port: (devel/py-importlib)
  
  This package contains the code from importlib as found in Python 2.7.
  
  It is provided so that people who wish to use importlib.import_module()
  with a version of Python prior to 2.7 or in 3.0 have the function readily
  available. The code in no way deviates from what can be found in the 2.7
  trunk.
  
  For documentation, see the importlib docs for Python 2.7.
  
  WWW: http://pypi.python.org/pypi/importlib/1.0.
  
  PR:     ports/165420
  Submitted by:   Alexandros Kosiaris <akosiaris@gmail.com>
  
  Revision  Changes    Path
  1.4874    +1 -0      ports/devel/Makefile
  1.1       +20 -0     ports/devel/py-importlib/Makefile (new)
  1.1       +2 -0      ports/devel/py-importlib/distinfo (new)
  1.1       +10 -0     ports/devel/py-importlib/pkg-descr (new)
  1.1       +4 -0      ports/devel/py-importlib/pkg-plist (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 6 dfilter service freebsd_committer freebsd_triage 2012-02-24 18:39:22 UTC
jgh         2012-02-24 18:39:14 UTC

  FreeBSD doc repository (ports committer)

  Modified files:
    en_US.ISO8859-1/articles/contributors contrib.additional.sgml 
  Log:
  Add Alexandros Kosiaris <akosiaris+ports@gmail.com> for devel/py-importlib
  
  PR:     ports/165420
  
  Revision  Changes    Path
  1.1063    +4 -0      doc/en_US.ISO8859-1/articles/contributors/contrib.additional.sgml
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 7 Jason Helfman freebsd_committer freebsd_triage 2012-02-24 18:39:57 UTC
State Changed
From-To: feedback->closed

New port added, with minor changes. Thanks!