Changes between Initial Version and Version 1 of Ticket #46465, comment 3


Ignore:
Timestamp:
Mar 17, 2015, 10:53:08 AM (10 years ago)
Author:
dbevans (David B. Evans)
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #46465, comment 3

    initial v1  
    33> I'd like to hear your opinion about this. Is there a method for easily converting a PyPI/setuptools python package into a MacPorts package?
    44
    5 It's not too hard to do a python port like this by hand.  Most of the work is done by the python PortGroup.  See any of the existing py-* ports for examples.  Since we support multiple parallel installed versions of python, a python port typically includes subports for each version of python that is supported.  Right now, we are trying to whittle the number of python versions supported to something like just python27 and python34 but python26 and python33 are not unheard of as yet.  But again this depends on what versions of python your packages support.
     5It's not too hard to do a python port like this by hand.  Most of the work is done by the [source:trunk/dports/_resources/port1.0/group/python-1.0.tcl python PortGroup].  See any of the existing py-* ports for examples.  Since we support multiple parallel installed versions of python, a python port typically includes subports for each version of python that is supported.  Right now, we are trying to whittle the number of python versions supported to something like just python27 and python34 but python26 and python33 are not unheard of as yet.  But again this depends on what versions of python your packages support.
    66
    77Having said that, there IS a tool for making a Portfile from PyPI, [source:trunk/dports/sysutils/pypi2port pypi2port] that you might want to look at. It's fairly new, however, and I see there are a few tickets on the current version so I'm not sure how solid it is as yet.