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

python 3.10 vs cmake python module logic #1231

Closed
cyrush opened this issue Dec 1, 2023 · 2 comments
Closed

python 3.10 vs cmake python module logic #1231

cyrush opened this issue Dec 1, 2023 · 2 comments
Labels
Milestone

Comments

@cyrush
Copy link
Member

cyrush commented Dec 1, 2023

python 3.10 packaging changed and the upshot that the changes are undermining our cmake logic to create mixed python script and compiled python modules.

specifically:

It resurrected the creation of zip-based eggs files for our pure python lib.
Since the py files are squirreled away into a zip file, that means that the python scripts don't land next to the shared libs they are referencing.

I have no clue why eggs are back as zombies b/c eggs are deprecated format.

It turns out we can use:

--old-and-unmanageable

To to avoid the eggs, which I note we have been otherwise already been avoiding for several years.

Need to go back and study newspeak to understand why --old-and-unmanageable helps us avoid deprecated behavior.

@cyrush cyrush added the task label Dec 1, 2023
@cyrush
Copy link
Member Author

cyrush commented Dec 2, 2023

--old-and-unmanageable only seems to work in some cases.

I move from distuils to setuptools and pip install as suggested.

That said, turns out that I had to re-enable egg creation for the proper legacy path to work.

So eggs are back.

@cyrush
Copy link
Member Author

cyrush commented Dec 6, 2023

resolved in #1232

@cyrush cyrush closed this as completed Dec 6, 2023
@cyrush cyrush added this to the 0.9.3 milestone Dec 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant