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

bdist_mac: move set_relative_reference_paths to build_exe #2106

Merged
merged 1 commit into from Oct 20, 2023
Merged

Conversation

marcelotduarte
Copy link
Owner

@marcelotduarte marcelotduarte commented Oct 20, 2023

The focus of this change is the separation of stages, and the result is that it solves some problems. Placing set_relative_reference_paths in the build_exe step corrects all rpaths without sharing a 'freezer' object between build_exe and bdist_mac and thus build_exe is complete. After that, samples (pyside2, pyqt5, etc.) that previously gave an error if run using just build_exe, are now run. And with bdist_mac they also run. To use codesign and notarization you will need the bdist_mac/bdist_dmg step.

This PR depends on #2107

@codecov
Copy link

codecov bot commented Oct 20, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (1515ce8) 51.68% compared to head (c4a6305) 51.63%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2106      +/-   ##
==========================================
- Coverage   51.68%   51.63%   -0.05%     
==========================================
  Files          72       72              
  Lines        5932     5928       -4     
==========================================
- Hits         3066     3061       -5     
- Misses       2866     2867       +1     
Files Coverage Δ
cx_Freeze/command/build_exe.py 50.00% <ø> (-0.45%) ⬇️
cx_Freeze/darwintools.py 67.67% <100.00%> (+1.29%) ⬆️
cx_Freeze/freezer.py 79.00% <100.00%> (ø)
cx_Freeze/command/bdist_mac.py 46.49% <91.66%> (-4.32%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@marcelotduarte
Copy link
Owner Author

@TechnicalPirate Can you or @johan-ronnkvist check if this does not break your code/project?
For me, it worked flawlessly using some samples.

@TechnicalPirate
Copy link
Contributor

Hi Marcel,

I'd like to look at this but I'm sadly no longer assigned to the project/team I was so have lost access to the test-infrastructure i was using. 😢 I hope i can recreate some of it in my new role...

If i get a window of opportunity to run these tests i will and report back - but right now i can't promise anything.

@marcelotduarte
Copy link
Owner Author

Alright, Joe. Success in the new role... Marcelo.

@marcelotduarte marcelotduarte merged commit 45bb606 into main Oct 20, 2023
21 checks passed
@marcelotduarte marcelotduarte deleted the macos branch October 20, 2023 19:59
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.

None yet

2 participants