-
Notifications
You must be signed in to change notification settings - Fork 243
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
Windows symlinks no longer built into wheel for v2.3 #962
Comments
This appears to resolve issue regarding Windows symlinks not copying. See pypa/cibuildwheel#962
My guess this is due to pip 21.3, which no longer makes a complete copy of the source directory. The old behavior must have been resolving the symlinks during the copy process, causing it to happen to work. The new behavior just seems the symlinks as they are, and they are not handled. You'll probably need to override the setuptools bdist_wheel and maybe sdist commands. You could force the old behavior for a little longer with |
Version 2.3.1 now allows |
Example: pybind/cmake_example#67 |
This appears to resolve issue regarding Windows symlinks not copying. See pypa/cibuildwheel#962
Thank you for taking a look at this. However it seems that this fix doesn't work completely, at least not across all platforms and python versions we test against. I ended up specifying
So if I'm understanding this right, the version of Currently pinning 2.2.2 will work, and it looks like we'll need to do some work in future as you suggest to change our build process to accommodate this. |
Ah, perhaps you're specifying |
Trying it that way and it passes on every platform. Thank you, that'll do for now. |
FYI, toml config does not have anything to do with the action - it works any way you call cibuildwheel. In fact, one of the major benefits of toml config is that it makes it easier to run it locally or change CI systems. |
Description
We have a repo with submodules, and use symlinks to bring files into the main Python module source.
As of version 2.3 the symlinked directory is no longer copied into the built wheel on Windows (it is for MacOS and Ubuntu builds). Rolling back to version 2.2.2 and the symlinked directory is copied, with no other configuration changes required.
The build log linked shows the Windows tests failing start because they cannot find a file that should be included by a symlink. The Ubuntu and MacOS tests find the file and run tests.
The symlink file itself can be seen here: https://github.com/dls-controls/pythonSoftIOC/blob/sort_setting_values/softioc/iocStatsDb
Build log
https://github.com/dls-controls/pythonSoftIOC/runs/4517544616?check_suite_focus=true
CI config
https://github.com/dls-controls/pythonSoftIOC/blob/7f95e6b885fe36315ed60c4f583de746068ab6fa/.github/workflows/code.yml#L69
The text was updated successfully, but these errors were encountered: