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

Create standalone cython runtime module package #6132

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

da-woods
Copy link
Contributor

@da-woods da-woods commented Apr 6, 2024

#1981

Package is named Cython_shadow. That can probably be changed.

It doesn't attempt to deal with any versioning issues.

It also doesn't do any testing. That'd probably be a case of adding a ci run that makes and installs the wheel and then imports a few example pure-Python modules.

Not sure what else I'm missing.

cython#1981

Package is named Cython_shadow. That can probably be changed.

It doesn't attempt to deal with any versioning issues.

It also doesn't do any testing. That'd probably be a case of
adding a ci run that makes and installs the wheel and then imports
a few example pure-Python modules.

Not sure what else I'm missing.
@da-woods
Copy link
Contributor Author

da-woods commented Apr 6, 2024

I'm created this as a draft because 1) I'm not completely sure this is a good idea, and 2) it's missing any kind of testing

@@ -0,0 +1 @@
../cython.py
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this file should not be symbolic link but new file since this file imports also Cython.Compiler.Main

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For now I think I'll catch any import error and print a message.

@matusvalo
Copy link
Contributor

  1. it's missing any kind of testing

Shadow file is already tested in: Cython/Tests/TestShadow.py. Do we need additional tests since this PR is adding just symbolic links?

@da-woods
Copy link
Contributor Author

da-woods commented Apr 6, 2024

Do we need additional tests since this PR is adding just symbolic links?

Probably just that the wheel does provide the imports that I think it does. So not a huge amount of testing, but a little bit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants