cmake-build-extension icon indicating copy to clipboard operation
cmake-build-extension copied to clipboard

write __init__.py into a wrong folder

Open shi-yan opened this issue 2 years ago • 0 comments

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

shi-yan avatar Feb 15 '23 23:02 shi-yan