rattler-build
rattler-build copied to clipboard
[question/support] migrate conda-build to rattler-build on windows (scikit-build?)
I am trying to migrate h3-py to rattler-build here:https://github.com/conda-forge/h3-py-feedstock/pull/52/files
the CI pipeliens fail though: https://dev.azure.com/conda-forge/feedstock-builds/_build/results?buildId=1208636&view=logs&j=535b614b-9e28-51ef-eb67-d0aa83d01d61&t=c0e5205c-8699-555e-ce93-e93093f402f2
Invalid argument: 'src\\h3\\api\\basic_str\\__init__.py'
│ │ -- Installing: C:\Users\VSSADM~1\AppData\Local\Temp\tmpi1o5rh8x\wheel\platlib/lib/h3.lib
...
│ │ -- Installing: C:\Users\VSSADM~1\AppData\Local\Temp\tmpi1o5rh8x\wheel\platlib/h3/_cy/h3api.h
│ │ *** Making wheel...
│ │ Traceback (most recent call last):
│ │ File "%PREFIX%\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 389, in <module>
│ │ main()
│ │ File "%PREFIX%\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 373, in main
│ │ json_out["return_val"] = hook(**hook_input["kwargs"])
│ │ File "%PREFIX%\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 280, in build_wheel
│ │ return _build_backend().build_wheel(
│ │ File "%PREFIX%\lib\site-packages\scikit_build_core\build\__init__.py", line 33, in build_wheel
│ │ return _build_wheel_impl(
│ │ File "%PREFIX%\lib\site-packages\scikit_build_core\build\wheel.py", line 174, in _build_wheel_impl
│ │ return _build_wheel_impl_impl(
│ │ File "%PREFIX%\lib\site-packages\scikit_build_core\build\wheel.py", line 476, in _build_wheel_impl_impl
│ │ shutil.copyfile(filepath, package_dir)
│ │ File "%PREFIX%\lib\shutil.py", line 254, in copyfile
│ │ with open(src, 'rb') as fsrc:
│ │ OSError: [Errno 22] Invalid argument: 'src\\h3\\api\\basic_str\\__init__.py'
│ │ error: subprocess-exited-with-error
│ │
│ │ Building wheel for h3 (pyproject.toml) did not run successfully.
│ │ exit code: 1
It is not super obvious for me if this issue lies in the interaction of scikit_build_core and rattler-build or if this is something I can fix on my side by modifying the windows build .bat file
Retrying now with https://github.com/conda-forge/h3-py-feedstock/pull/53 feedrattler --no-use-pixi h3-py-feedstock --branch-name convert_feedstock_to_v1_h3-py_v2 has the same error
https://conda-forge.zulipchat.com/#narrow/channel/457337-general/topic/scikit-build.20.2Fratterl.20issue reason: this is an issue with reattler-build on windows and symlinks
If conda-build support symlinks on windows, how does it handle symlinks when it's not dev mode?