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

Trying to fix Mac distributable #353

Merged
merged 26 commits into from
Sep 13, 2023
Merged

Trying to fix Mac distributable #353

merged 26 commits into from
Sep 13, 2023

Conversation

rly
Copy link
Collaborator

@rly rly commented Sep 9, 2023

Fix #89

@rly
Copy link
Collaborator Author

rly commented Sep 9, 2023

This includes changes in #346.

@rly rly marked this pull request as draft September 9, 2023 22:15
@CodyCBakerPhD
Copy link
Collaborator

@rly Is this ready for review? (some conflicts now that the other one is through)

@rly rly marked this pull request as ready for review September 12, 2023 07:00
- numpy # may have x64/arm64 mismatch issues so install from conda-forge
# install these from conda-forge so that dependent packages get included in the distributable
- jsonschema = 4.18.0 # installs jsonschema-specifications
- pydantic[email] = 2.0.2 # installs email-validator
Copy link
Collaborator

Choose a reason for hiding this comment

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

Yes, I was wondering if the conda-forge installation pathway would resolve a lot of our challenges with this

Thanks for trying that out

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is an alternative to pip install email_validator which is used in the win/linux envs. I don't know which one is better, but they both seem to work. Do you have a preference? We should probably be consistent with the envs as much as we can.

Copy link
Collaborator

@CodyCBakerPhD CodyCBakerPhD Sep 13, 2023

Choose a reason for hiding this comment

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

I believe that conda-forge is more reliable when there are many nested (as in hidden imports) or non-Python (as in bindings) assets attached to the package

Also architecture specific releases - PyPI does a lot of that magically and you just cross your fingers but as you know, it's something you specifically setup in the feedstock (with or without certain amount of developer pains)

Though PyPI can host non-pure Python, in experience it tends to work best for pure Python code

So I'm fine with pydantic coming from conda-forge, yes. Also v2.x of Pydantic is partially written in Rust whereas v1.x is pure Python so setting up for conda-forge might be best here

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Great points

@CodyCBakerPhD CodyCBakerPhD merged commit 36fdba6 into main Sep 13, 2023
4 of 7 checks passed
@CodyCBakerPhD CodyCBakerPhD deleted the debug_mac_dist branch September 13, 2023 00:57
@CodyCBakerPhD
Copy link
Collaborator

Well, I must be going crazy, but at least I have evidence...

Last commit on #358 (hash ddcbc4b...) all checks green: https://github.com/NeurodataWithoutBorders/nwb-guide/actions/runs/6163829240/job/16728234060

Last commit on this PR, following the acceptance and merging of that PR into this one, (hash 42451bc...) all dist tests on all platforms now throwing the recursion depth I'd only ever seen locally before: https://github.com/NeurodataWithoutBorders/nwb-guide/actions/runs/6166469788/job/16736019825?pr=353

@CodyCBakerPhD
Copy link
Collaborator

Aha! The difference between the runs is whether or not the conda environment in the CI was cached (which is done for speed)

So something changed from the cached versions that now means we have quite the depth do our PyInstaller spec

@garrettmflynn
Copy link
Member

garrettmflynn commented Sep 13, 2023

On no! I'm glad you're onto the cause.

I think I fixed the Windows / Linux window rendering issues. Just a stupid mistake because of inconsistencies between development and production hooks (#360) :(

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.

[Mac]: Python server unable to be built with Pyinstaller
3 participants