[MacPorts] #15133: python port confused by ~/.pydistutils.cfg

MacPorts trac at macosforge.org
Fri Apr 25 20:28:10 PDT 2008

#15133: python port confused by ~/.pydistutils.cfg
 Reporter:  pfein at pobox.com  |       Owner:  macports-tickets at lists.macosforge.org
     Type:  defect           |      Status:  new                                  
 Priority:  Normal           |   Milestone:  Port Bugs                            
Component:  ports            |     Version:  1.6.0                                
 Keywords:                   |  
 I use a custom ~/.pydistutils.cfg to install setuptools packages in my
 home directory

 $ cat /Users/pfein/.pydistutils.cfg
 install_lib = ~/lib/python$py_version_short
 install_scripts = ~/bin/python$py_version_short

 install_dir = ~/lib/python$py_version_short
 script_dir = ~/bin/python$py_version_short
 zip_ok = false

 See http://www.python.org/doc/current/inst/config-syntax.html for more

 Doing so causes ports to install there, instead of under
  sudo port install py25-sqlite3
 --->  Fetching py25-sqlite3
 --->  Verifying checksum(s) for py25-sqlite3
 --->  Extracting py25-sqlite3
 --->  Configuring py25-sqlite3
 --->  Building py25-sqlite3 with target build
 --->  Staging py25-sqlite3 into destroot
 Warning: violation by /Users
 Warning: py25-sqlite3 violates the layout of the ports-filesystems!
 Warning: Please fix or indicate this misbehavior (if it is intended), it
 will be an error in future releases!
 --->  Installing py25-sqlite3 2.5.2_0
 --->  Activating py25-sqlite3 2.5.2_0
 --->  Cleaning py25-sqlite3

 I suspect that ports is calling setup.py without any arguments.  It should
 probably pass explicit --prefix & the like instead.

Ticket URL: <http://trac.macosforge.org/projects/macports/ticket/15133>
MacPorts </projects/macports>
Ports system for Mac OS

More information about the macports-tickets mailing list