Skip to content

Wheels not installing properly #7507

@brl0

Description

@brl0

Environment

  • pip version: 19.2.3, 19.3.1
  • Python version: 3.5-3.8
  • OS: Windows, Linux, MacOSX

Description

When installing a wheel from PyPI (and TestPyPI), there seems to be inconsistent behavior as to when it installs *.so and *.pyd files. I can consistently recreate the issue in Azure pipelines, but not on my machine.

Expected behavior

It should install all appropriate files, at least those that match extensions that result from this command:
python -c "import importlib.machinery; print(importlib.machinery.all_suffixes())"

How to Reproduce

  1. Get package from '...'
    python -m pip install -vvv --no-cache-dir --ignore-requires-python --force-reinstall -I --prefer-binary --no-clean --disable-pip-version-check --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple primesieve

  2. Then run '...'
    python -c "from primesieve import primes;print(primes(10))"

  3. An error occurs.

Output

ModuleNotFoundError: No module named 'primesieve._primesieve'

To help troubleshoot, I put in a try/except to print the file names in the module directory, which shows that some of the expected files are missing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    auto-lockedOutdated issues that have been locked by automationtype: supportUser Support

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions