Skip to content
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

write __init__.py into a wrong folder #42

Open
shi-yan opened this issue Feb 15, 2023 · 0 comments
Open

write __init__.py into a wrong folder #42

shi-yan opened this issue Feb 15, 2023 · 0 comments

Comments

@shi-yan
Copy link

shi-yan commented Feb 15, 2023

The extension tries to write the init.py into the wrong folder. I don't know how to change this behavior

      ==> Building:
      $ cmake --build /home/xxx/work/cpp/build/temp.linux-x86_64-cpython-310_Blah --config Release
      
      ==> Installing:
      $ cmake --install /home/xxx/work/cpp/build/temp.linux-x86_64-cpython-310_Blan
      
      error: [Errno 2] No such file or directory: '/home/xxx/work/cpp/build/lib.linux-x86_64-cpython-310/blah/__init__.py'
      [end of output]

The build folder should be temp.linux-x86_64-cpython-310_Blah, but it tries to write the __init__.py file into /home/xxx/work/cpp/build/lib.linux-x86_64-cpython-310/blah/

the above error is triggered by write_top_level_init=init_py, in setup.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant