Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#15133 closed defect (duplicate)

python port confused by ~/.pydistutils.cfg

Reported by: pfein@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: Cc:
Port:

Description

I use a custom ~/.pydistutils.cfg to install setuptools packages in my home directory

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

[easy_install]
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 info

Doing so causes ports to install there, instead of under /opt/local/lib/python2.5:

 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.

Change History (2)

comment:1 Changed 16 years ago by jmroot (Joshua Root)

Resolution: duplicate
Status: newclosed

Duplicate of #9831.

comment:2 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.