question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

easy_install installation location not controlled by --prefix

See original GitHub issue

Hi, Spack developer here.

One of our users noticed that when setuptools is installed, it tries to install its easy_install.py file to the site-packages directory of the Python installation, even though we explicitly provide an alternate --prefix to install to. This is particularly a problem for users who use a system Python with Spack that they don’t have install permissions to. Is there some other way to tell easy_install.py where to install to besides the --prefix option of setup.py install? See https://github.com/spack/spack/issues/13738 and https://github.com/spack/spack/issues/13955 for the original issues.

@LDAmorim @ax3l

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:2
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
abravalhericommented, Jan 17, 2022

@adamjstewart @LDAmorim @ax3l, please also notice that using python -s might be problematic. The current version of setuptools rely on a .pth file to load the correct version of distutils. This is required during the transition period while distutils is deprecated and scheduled to be removed from the stdlib (i.e. will be necessary until the EoL of 3.11).

1reaction
adamjstewartcommented, Jan 17, 2022

Getting back to the original issue, @LDAmorim @ax3l can you try to reproduce this with the tip of develop in Spack? If you can’t reproduce the issue anymore then I’m guessing this has been fixed (either in setuptools or in Spack).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Easy_install's --prefix option doesn't change where it tries to ...
A user configuration file, ~/.pydistutils.cfg, will override the internal system path for python package installations, redirecting the built libraries (lib), ...
Read more >
Easy Install - setuptools 65.6.3.post20221220 documentation
Easy Install is a python module ( easy_install ) bundled with setuptools that lets you automatically download, build, install, and manage Python packages....
Read more >
easy_install.py - Python.org
_expand('install_dir','script_dir','build_directory','site_dirs') # If a non-default installation directory was specified, default the # script directory to ...
Read more >
1664722 – Latest release breaks easy_install - Red Hat Bugzilla
It expects to use a directory /usr/local/lib/python36 which does not exist ... The installation directory you specified (via --install-dir, --prefix, ...
Read more >
setuptools 3.5.2 - PyPI
Advanced Installation. For more advanced installation options, such as installing to custom locations or prefixes, download and extract the source tarball from ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found