Issue129

Title Installation problem with pyx on windows
Priority bug Status chatting
Superseder Nosy List bjourne, pje
Assigned To Keywords

Created on 2011-05-12.07:15:34 by bjourne, last changed 2011-05-12.13:57:31 by pje.

Messages
msg625 (view) Author: pje Date: 2011-05-12.13:57:31
As the error message says, the "pyx" project has tried to directly install files to C:\Python27 even though its setup script was explicitly asked to install them elsewhere.

From glancing at the setup script, it would appear that the specific problem is that it's trying to run 'install_data' before 'install_lib', but setuptools runs them in the opposite order, in order to be compatible with other packages that do weird things with install_data.

It's unlikely that setuptools can be changed to support running install_data first, without it causing other packages' installations to break.

OTOH, pyx's setup.py doesn't actually *need* to run install_data first; it can simply move the code in install_data.run() to install_lib.install() without loss of functionality.
msg624 (view) Author: bjourne Date: 2011-05-12.07:15:33
H:\>easy_install pyx
Searching for pyx
Reading http://pypi.python.org/simple/pyx/
Reading http://pyx.sourceforge.net/
Reading http://sourceforge.net/project/showfiles.php?group_id=45430
Best match: PyX 0.10
Downloading http://sourceforge.net/projects/pyx/files/pyx/0.10/PyX-0.10.tar.gz/download
Processing PyX-0.10.tar.gz
Running PyX-0.10\setup.py -q bdist_egg --dist-dir c:\users\bjolin\appdata\local\temp\easy_install-jaiul5\PyX-0.10\egg-dist-tmp-4kffgf
error: Setup script exited with error: SandboxViolation: mkdir('C:\\Python27\\share\\pyx', 511) {}

The package setup script has attempted to modify files on your system
that are not within the EasyInstall build area, and has been aborted.

This package cannot be safely installed by EasyInstall, and may not
support alternate installation locations even if you run its setup
script by hand.  Please inform the package's author and the EasyInstall
maintainers to find out if a fix or workaround is available.
History
Date User Action Args
2011-05-12 13:57:31pjesetstatus: unread -> chatting
nosy: + pje
messages: + msg625
2011-05-12 07:15:34bjournecreate