-
Notifications
You must be signed in to change notification settings - Fork 16
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
Install Via pip Fails Due to Dependency scikit-build #27
Comments
@jcfr would it be possible to add this dependency? |
since ninja binaries are expected to be available as wheel for all python distributions, it is not expected that we built it from source. I think we should understand the root cause here. Indeed, the wheels are expected to work with all python distributions. See https://pypi.org/project/ninja/#files Using the python interpreter where there are issues, what is the output of the following:
|
@jcfr I built a very simple testcase for you to reproduce the issue:
FROM alpine:3.10
# install python3 (incl. pip3)
RUN apk add --no-cache --update python3
# add example file
RUN echo -e "from pip._internal.pep425tags import get_supported\nprint('\\\n'.join('-'.join(x) for x in get_supported()))" > /jcfr_test.py
RUN python3 /jcfr_test.py
# install ninja dependency manually
#RUN pip3 install 'scikit-build==0.10.0'
RUN pip3 install ninja
This results in
|
@jcfr is there any change regarding this issue? |
Unfortunately not: pypa/pip#3969 Unfortunately (this word does come to mind repeatedly when thinking of Python packaging), requiring a build dependency can only be done by adding another file to the source tarball. Example: https://github.com/prody/ProDy/pull/806/files But that should solve the problem for us alpine users 🙂 |
@andreparames can you please clarify what you mean by "that should solve the problem for us alpine users"? Which step are you suggesting solves that problem? |
@bsolomon1124 you have to add a |
Fixed in 1.10.0.post3 |
Originally submitted here: ninja-build/ninja#1608
I believe that
scikit-build
should be added as a dependency inpip install
as I get the following error if it is not installed:Edit: System & platform information:
OS: Microsoft Windows 10 64-bit
Python & pip info:
$ python --version Python 3.7.4 $ python -c 'import sys; print("64-bit: {}".format(sys.maxsize > 2**32))' 64-bit: True $ pip --version pip 19.1 from /usr/lib/python3.7/site-packages/pip (python 3.7) $ pip search ninja ninja (1.9.0.post1) - Ninja is a small build system with a focus on speed ...
The text was updated successfully, but these errors were encountered: