Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Passing arch to the nix install script and adjusting brew libs + use macos-14 to build if needed#277

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
jmarrec wants to merge5 commits intoactions:main
base:main
Choose a base branch
Loading
fromjmarrec:passing_arch

Conversation

@jmarrec
Copy link

@jmarrecjmarrec commentedMay 29, 2024
edited
Loading

The commit descriptions provide more info.

@jmarrecjmarrec requested a review froma team as acode ownerMay 29, 2024 05:46
I cannot **link** to the resulting python dylib otherwise.
@mayeut
Copy link
Contributor

@jmarrec, why the change from always using universal2 installers on arm64 ?

Comment on lines -183 to +205
if (($this.Version-ge$PkgVersion)-or ($this.Architecture-eq"arm64")) {
if (($this.Version-ge$PkgVersion)-and ($this.Architecture-eq"x64")) {
Copy link
Contributor

Choose a reason for hiding this comment

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

arm64 always uses the universal2 installer.
most of the changes here are not required if this stays the same.

@jmarrec
Copy link
Author

I cannot properly link a c++ executable to it if using the universal installer.
Libpython.dylib reports mach-o x64

@mayeut
Copy link
Contributor

that seems like a different issue. universal2 installer provides dual arch (x86_64 & arm64). Do you have a repro for this ?

@jmarrec
Copy link
Author

Not that simple to provide a MCVE, but I've experienced it in a (large) project that uses CMake and CPack for packaging, and which redistributes the python dylib.

Linking is ok, the issue is when executing it. It refuses to launch it due to code signature I think.

codesign --verify --deep --verbose PythonPython: invalid Info.plist (plist or signature have been modified)In architecture: arm64

@jmarrec
Copy link
Author

@mayeut here is a MCVE repro:https://github.com/jmarrec/test-Github-Actions/actions/runs/9446808318/job/26017370106

It's not impossible that this could be the issue:https://stackoverflow.com/questions/58997650/trying-to-codesign-a-mac-osx-app-but-when-i-check-it-i-get-pharo-app-invalid

The SO post mentions that codesign behaves differently when you have a library/exe that starts with an uppercase, and the resolved python library isPython in this case. And I think that lib is codesigned to begin with, while when you force build it isn't.

Anyways, the program links, but can't be executed.

https://github.com/jmarrec/test-Github-Actions/actions/runs/9446808318/job/26017370106#step:7:15

And the relevant build warning athttps://github.com/jmarrec/test-Github-Actions/actions/runs/9446808318/job/26017246804#step:6:2196


And here is a run with my fork for setup-python, which uses my fork of python-versions where I force build the python package on mac

https://github.com/jmarrec/test-Github-Actions/actions/runs/9446912815

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

1 more reviewer

@mayeutmayeutmayeut left review comments

Reviewers whose approvals may not affect merge requirements

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@jmarrec@mayeut

[8]ページ先頭

©2009-2025 Movatter.jp