Opened 15 years ago

Last modified 9 years ago

#19233 closed enhancement

python site-packages .pth handling — at Version 1

Reported by: dweber@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: mww@…, blb@…, mcalhoun@…
Port: python25 python26 python30

Description (last modified by blb@…)

I wonder if this EasyInstall tip could or should be applied to python2.x ports?

http://peak.telecommunity.com/DevCenter/EasyInstall#administrator-installation

Change History (1)

comment:1 Changed 15 years ago by blb@…

Cc: mww@… blb@… mcalhoun@… added
Description: modified (diff)
Port: python25 python26 python30 added; python2.5 python2.6 python2.x removed

Ignoring the homedir-based install stuff, setting up a system distutils.cfg could have value for software that makes assumptions (eg, prefix always contains lib/pythonXY); maybe something like

[install]
install_lib = ${frameworks_dir}/Python.framework/Versions/${python.branch}
install_scripts = ${frameworks_dir}/Python.framework/Versions/${python.branch}/bin/python${python.branch}

(replacing python.branch for each pythonXY port).

Note: See TracTickets for help on using tickets.