Advice on distributing a project

Ryan Schmidt ryandesign at macports.org
Thu Jun 28 08:54:29 UTC 2018


On Jun 27, 2018, at 13:47, Langer, Stephen A. (Fed) wrote:
 
> It requires knowing the installation prefix during the distutils build stage, which certainly can be done, but I don't think it's standard in the distutils world.  At least, the prefix isn't accessible to the build_ext command in the python 2.7 distutils.  The easiest solution would be for the distutils build_ext command to copy the value from the distutils install command, but that requires them to be run together in the MacPorts build phase, which breaks the MacPorts model.  It could be set twice, once as a build argument and once as an install argument, which is ugly but might work.  I'll try it.

Yes there are many ports that supply the same arguments and/or environment variables at both build and destroot time. It's a simple one-liner in a Portfile to copy all the args, for example.

macOS has been around for over 17 years. It would be weird if in all that time Python hasn't developed an easy way to create correct dylibs. My assumption therefore is that such an easy method does exist, I just don't know what it is since I'm not very familiar with Python.





More information about the macports-users mailing list