Skip to content

pypy -m pip install cmake fails #60

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

Closed
dhermes opened this issue Dec 11, 2018 · 7 comments
Closed

pypy -m pip install cmake fails #60

dhermes opened this issue Dec 11, 2018 · 7 comments
Labels
help wanted Type: Enhancement Improvement to functionality

Comments

@dhermes
Copy link

dhermes commented Dec 11, 2018

$ pypy-venv/bin/pip install cmake
Collecting cmake
  Using cached https://files.pythonhosted.org/packages/ca/dd/b1df8148e52f94404979d879bf6fb763dc85a1c421729909b0089d22331f/cmake-3.13.1.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<module>", line 1, in <module>
      File "/tmp/pip-install-P2Cl5_/cmake/setup.py", line 7, in <module>
        from skbuild import setup
    ImportError: No module named skbuild

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-P2Cl5_/cmake/
@dhermes
Copy link
Author

dhermes commented Dec 11, 2018

When scikit-build is present, it fails for different reasons:

$ pypy -m virtualenv pypy-venv
...
$ pypy-venv/bin/pip install scikit-build
...
Successfully installed packaging-18.0 pyparsing-2.3.0 scikit-build-0.8.1 six-1.12.0
$ pypy-venv/bin/pip install cmake
...
  Traceback (most recent call last):
    File "<module>", line 1, in <module>
    File "/tmp/pip-install-5AvaLq/cmake/setup.py", line 78, in <module>
      setup_requires=setup_requires
    File ".../pypy-venv/site-packages/skbuild/setuptools_wrap.py", line 548, in setup
      languages=cmake_languages
    File ".../pypy-venv/site-packages/skbuild/cmaker.py", line 203, in configure
      python_library),
  TypeError: unsupported operand type(s) for +: 'str' and 'NoneType'

  ----------------------------------------
  Failed building wheel for cmake
...

@jcfr
Copy link
Contributor

jcfr commented Dec 11, 2018

Thanks for reporting the issue.

Waiting we address the issue reported in the second comment, is pypy always expected to build package from source ? Or should it download existing wheel ?

@jcfr
Copy link
Contributor

jcfr commented Dec 11, 2018

I just released you tried to use http://doc.pypy.org. Similarly to cpython, is there prescribed docker images to use for building package on linux ?

@jcfr jcfr added Type: Enhancement Improvement to functionality help wanted labels Dec 11, 2018
@dhermes
Copy link
Author

dhermes commented Dec 12, 2018

is pypy always expected to build package from source ? Or should it download existing wheel ?

Looking at the wheels for cmake, they all have cpXY-cpXYm[u]. That cp stands for CPython. (AFAIK PyPI only allows uploading wheels for CPython.)

I just released you tried to use http://doc.pypy.org.

I actually use pyenv to install my local version of pypy, but that shouldn't matter?

@jcfr
Copy link
Contributor

jcfr commented May 26, 2019

see scikit-build/scikit-build#407

@thewtex
Copy link
Member

thewtex commented Jun 10, 2019

Now that the cmake wheels are using py2-none and py3-none instead of cpXY-cpXYm[u], has this issue been addressed?

@henryiii
Copy link
Contributor

henryiii commented Apr 9, 2021

Yes, it does! Just checked with pypy3 7.3.4. (On macOS, you still have to upgrade pip in the venv, as pypy ships with 20.1.1, which doesn't support wheels on Big Sur 😠 )

@henryiii henryiii closed this as completed Apr 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Type: Enhancement Improvement to functionality
Projects
None yet
Development

No branches or pull requests

4 participants