-
Notifications
You must be signed in to change notification settings - Fork 857
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
cmake --build . --target pypangolin_pip_install creates an unknown-unknown.whl #752
Comments
I had exactly same issue when CMake selected python2.7, but when I change the version to python3.6 (by cmake .. -DPython_EXECUTABLE=/......./python3.6, since I use CMake version 3.18.0 the variable is as so) I got no issue. Maybe I think the version of python is the reason. Try little bit low version such as 3.6 or 3.8 |
pip install wheel |
it says |
I cannot reproduce this with: cmake -B build
cmake --build build --target pypangolin_pip_install If I run these commands, I get a |
Open the file
This is why you got
|
Then. |
incounter an error while running
Solution:add python directory to the PATH Where, After adding directory to PATH re-run
from here and finally |
it works, helps me a lot |
hello everyone, here I successfully add the python dir to $PATH
and re-run the two build-command.
and i also try this, doesn't work I would be very appreciate if someone can help give ideas and ways to solve the problem:) |
The wheel file name The wheel file name is formatted as part of the Pangolin/cmake/MakePythonWheel.cmake Lines 13 to 29 in e80f974
Essentially, something like #!/usr/bin/env python3
from setuptools.dist import Distribution
from setuptools import Extension
def wheel_name(**kwargs):
# create a fake distribution from arguments
dist = Distribution(attrs=kwargs)
# finalize bdist_wheel command
bdist_wheel_cmd = dist.get_command_obj('bdist_wheel')
bdist_wheel_cmd.ensure_finalized()
# assemble wheel file name
distname = bdist_wheel_cmd.wheel_dist_name
tag = '-'.join(bdist_wheel_cmd.get_tag())
return f'{distname};{tag}'
python_module = "pypangolin"
version = "0.9.2"
print(wheel_name(name=f'{python_module}', version=f'{version}', ext_modules=[Extension('dummy', ['summy.c'])])) should print something like The fallback Pangolin/cmake/MakePythonWheel.cmake Lines 34 to 37 in e80f974
but this also means you should have seen a Python module setuptools required for correct wheel filename generation. Please install if needed. on the terminal.
@Halfold Can you check the code snippet above and report back if it returns something useful, and also check the terminal output for the CMake message? |
I changed some bits around the wheel file generation in #956. It probably does not fix your issue, since you will still have to install |
The text was updated successfully, but these errors were encountered: