Closed grst closed 3 years ago
I'm open to suggestions here. I don't think I've used install_requires
correctly since my package doesn't need wheel
at runtime, only during build. But using setup_requires
instead won't work for the same reason as your error.
PEP 518 (https://www.python.org/dev/peps/pep-0518/) would have me believe that any build environment at a minimum would need setuptools and wheel.
The weird thing is, it does works with v1.2.0.
Can this be related to your changes to the .travis.yml
file?
https://github.com/jeffdaily/parasail-python/compare/v1.2...v1.2.1
The .travis.yml
file is only used by the Travis CI webhook, not during build and install. What is your exact install command on MacOS?
The .travis.yml file is only used by the Travis CI webhook, not during build and install.
Yes, what I meant was: The way how the wheel has been built might affect how it can be installed.
What is your exact install command on MacOS?
I install a package that dependes on parasail using
pip install .
(see gh actions script)
I now temporarily changed the dependency to parasail != 1.2.1
and it works again...
I can kinda sorta reproduce in an ubuntu container, but it seems like a broken environment to have pip and setuptools but not wheel.
FROM ubuntu:18.04
RUN apt update
# note the minus '-' at the end to exclude the python3-wheel package
RUN apt install build-essential python3 python3-pip python3-wheel-
# fails, No module named 'wheel'
RUN python3 -m pip install parasail
# also fails, same reason
python3 -m pip install parasail != 1.2.1
hmm, maybe it's easiest to just pre-install wheel
separately in that CI and be done with it...
How does this look?
https://github.com/jeffdaily/parasail-python/compare/no_wheel
This looks great, that should do the trick!
Merged and tagged v1.2.2.
My CI for the scirpy project started failing on MacOS, because parasail cannot be installed:
Apparently the
wheel
package is missing. I saw that it is declared as a dependency insetup.py
, however it is already imported insetup.py
, making it impossible for pip to read the dependencies when the package is not installed.https://github.com/jeffdaily/parasail-python/blob/03ce8b5dede0aed15d7406c09db9b10ea6a3794c/setup.py#L18