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

fix win10 build #552

Merged
merged 3 commits into from
Dec 31, 2024
Merged

fix win10 build #552

merged 3 commits into from
Dec 31, 2024

Conversation

thehajime
Copy link
Member

No description provided.

recent pip (version 23.0 or later) cannot install packages to a host
system without explicit option thus, failed under github actions.  This
commit fixes this issue.

Link: pypa/pip#11381
Signed-off-by: Hajime Tazaki <[email protected]>
This commit fixes the warnings (i.e., SyntaxWarning: invalid escape
sequence) shown in later python version (after 3.12) during installation
process of header files.

Signed-off-by: Hajime Tazaki <[email protected]>
On windows build, python script should declar freeze_support() according
to the document.  This commit adds this line to our headers_install.py
script.

Link: https://docs.python.org/3.13/library/multiprocessing.html#multiprocessing.freeze_support
Signed-off-by: Hajime Tazaki <[email protected]>
Copy link

@ddiss ddiss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't have a local win10 system for testing, but these changes look fine to me.

@@ -25,6 +25,7 @@ jobs:
- displayTargetName: windows-2019
os: windows
runs_on: windows-2019
pip_option: --break-system-packages
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we use the --user parameter to install to a local %APPDATA%\Python path instead of modifying the system python package? It's for CI so it probably doesn't matter...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it can. For this CI, I wanted to reduce OS depends code so, used the nasty option(--break-system-packages) for that.

@thehajime thehajime merged commit 7682a9e into lkl:master Dec 31, 2024
7 checks passed
@thehajime thehajime deleted the fix-win10-build branch December 31, 2024 02:47
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

Successfully merging this pull request may close these issues.

3 participants