Skip to content

Install namespace package with --prefix does not install the actual package files #5641

@NiklasRosenstein

Description

@NiklasRosenstein
  • Pip version: 18.0 (also tested in 10.0.1)
  • Python version: 3.6.5
  • Operating system: Windows 10
$ cd ~/Desktop
$ pip install --prefix test --ignore-installed hurry.filesize
$ ls test/Lib/site-packages/
__pycache__/  easy_install.py  hurry.filesize-0.9-py3.6.egg-info/ pkg_resources/  setuptools/  setuptools-40.0.0.dist-info/
$ cat test/Lib/site-packages/hurry.filesize-0.9-py3.6.egg-info/installed-files.txt
..\hurry.filesize-0.9-py3.6-nspkg.pth
..\hurry\filesize\README.txt
..\hurry\filesize\__init__.py
..\hurry\filesize\__pycache__\__init__.cpython-36.pyc
..\hurry\filesize\__pycache__\filesize.cpython-36.pyc
..\hurry\filesize\__pycache__\tests.cpython-36.pyc
..\hurry\filesize\filesize.py
..\hurry\filesize\tests.py
PKG-INFO
SOURCES.txt
dependency_links.txt
namespace_packages.txt
not-zip-safe
requires.txt
top_level.txt
$ ls test/Lib/site-packages/hurry
ls: cannot access 'test/Lib/site-packages/hurry': No such file or directory

You can see that the hurry directory doesn't actually exist – even though the installed-files.txt lists it with the package files as being installed.

Edit 1 fixed Python version

Metadata

Metadata

Assignees

No one assigned

    Labels

    C: setup.py installInvolves the setup.py install command directlystate: awaiting PRFeature discussed, PR is neededtype: bugA confirmed bug or unintended behavior

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions