-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Description
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
-
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
-
Then run '...'
python -c "from primesieve import primes;print(primes(10))"
-
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.