Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unzipped egg support - setuptools fails to install from a local folder it itself prepared #182

Closed
ghost opened this issue Apr 2, 2014 · 1 comment

Comments

@ghost
Copy link

ghost commented Apr 2, 2014

Originally reported by: jurko (Bitbucket: jurko, GitHub: jurko)


When setuptools is asked to 'download a package into a local folder', e.g. using

#!cmd
python -m easy_install --zip-ok --multi-version --always-copy --exclude-scripts --install-dir local_folder

it does the following:

  1. If the package is not already installed, it downloads the package distribution, prepares a zipped egg distribution from it and stores that in the download folder.
  2. If the package is already installed, it simply copies the installed egg into the download folder, which may result in the download folder containing an unzipped egg folder.

In the first case, you can run easy_install using the -f command-line option to make setuptools install the downloaded package from the download folder without additional downloads from the net. (N.B. The folder must be specified as a local file URL similar to file:///local_folder/, including the trailing slash character.)

However, in the second case, setuptools will not recognize the downloaded unzipped egg folder and will complain that the requested package can not be found there.

This can be worked around by manually zipping the unzipped egg folder (under the same name), but it seems wrong that setuptools would construct a download folder it can not later use as an installation source.

Hope this helps.

Best regards,
Jurko Gospodnetić


@ghost ghost added major bug labels Mar 29, 2016
jaraco added a commit that referenced this issue Mar 29, 2016
…unloading-th-1458177009332 (pull request #182)

. Fixes #519.
Remove the import hook when unloading the old pkg_resources modules
@abravalheri
Copy link
Contributor

Hello, I suppose we can close this issue now that easy_install has been deprecated and widely replace by other installation means, such as pypa/pip.

If anyone would like to reopen this issue, please feel free to write a new comment with more information or other use cases that we might be missing 😄.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant