Am 18.06.2008 um 15:49 schrieb Rainer Müller: > Martin Stadler wrote: >> I'm not shure about the details but Python is installed as a OS X >> framework in >> /opt/local/Library/Frameworks/Python.framework >> Python packages are not installed in the standard site-packages >> directory and virtual python[1] is not working with setuptools this >> way. > > This will hopefully be resolved with the new python ports building > as framework. If you are curious to try them out right now, you can > find the Portfiles for them in svn [1]. > > Any comments if these work for you are appreciated. > > Rainer > > [1] > http://svn.macports.org/repository/macports/branches/python-frameworks/dports/lang/ >
I added file:///Users/martin/ports to sources.conf. I copied the files from svn to ~/ports/lang/python24/. ### $ cd ports $ portindex ### -> successfully parsed: 1 ### $ sudo port install python24 $ python2.4 virtual-python.py --prefix=~/py_i18n Creating /Users/martin/py_i18n/lib/python2.4 Creating /Users/martin/py_i18n/lib/python2.4/site-packages Creating /Users/martin/py_i18n/include/python2.4 Creating /Users/martin/py_i18n/bin Copying /opt/local/Library/Frameworks/Python.framework/Versions/2.4/ Resources/Python.app/Contents/MacOS/Python to /Users/martin/py_i18n/bin You're now ready to download ez_setup.py, and run /Users/martin/py_i18n/bin/python ez_setup.py $ /Users/martin/py_i18n/bin/python ez_setup.py Downloading http://pypi.python.org/packages/2.4/s/setuptools/setuptools-0.6c8-py2.4.egg error: can't create or remove files in install directory The following error occurred while trying to add or remove files in the installation directory: [Errno 13] Permission denied: '/opt/local/Library/Frameworks/ Python.framework/Versions/2.4/lib/python2.4/site-packages/test-easy- install-68344.write-test' The installation directory you specified (via --install-dir, --prefix, or the distutils default setting) was: /opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/ python2.4/site-packages/ Perhaps your account does not have write access to this directory? If the installation directory is a system-owned directory, you may need to sign in as the administrator or "root" account. If you do not have administrative access to this machine, you may wish to choose a different installation directory, preferably one that is listed in your PYTHONPATH environment variable. For information on other options, you may wish to consult the documentation at: http://peak.telecommunity.com/EasyInstall.html Please make the appropriate changes for your system and try again. ### I think the installation directory should be ~/py_i18n/lib/python2.4/site-packages/ I believe it used to work this way. Martin OS X 10.5.3 MacPorts 1.6.0 Intel _______________________________________________ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-users