-
Notifications
You must be signed in to change notification settings - Fork 64
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
Skip __init__ when precompiling #328
Conversation
@cjdoris could you approve the CI run? |
Codecov Report
@@ Coverage Diff @@
## main #328 +/- ##
==========================================
+ Coverage 41.50% 41.52% +0.01%
==========================================
Files 76 76
Lines 4652 4655 +3
==========================================
+ Hits 1931 1933 +2
- Misses 2721 2722 +1
|
What is missing to merge this commit? The bug that this commit fixes is causing issues with my co-workers when they are trying to install PythonPlot... |
Pinging @cjdoris for any comments on what's blocking merge. He may just be on vacation, as I don't see any GitHub activity for about a month. |
Hi yeah I've been away. My worry with this is what happens if a package Foo that depends on PythonCall has an Or have I misunderstood and it all works fine? I'm going to experiment a bit. |
Also the linked issues all look like the same issue of Edit: it's #266 |
I would love to figure out the underlying issue, but this band-aid PR makes this (very annoying) problem go away. Can we merge it as a minimally-intrusive stopgap? |
It is not minimally intrusive, it actually very easily breaks any downstream packages in the way I suspected above. If I make a package
then precompiling I don't think this general idea can work, so I'm going to close this PR. Another option may be to initialise Python not in |
But |
I thought
__init__()
was always skipped when precompiling, but this appears to not be the case (at least on Windows). This appears to fix stillyslalom/PyThermo.jl#7, and may also fix #266, JuliaPy/PythonPlot.jl#25, and JuliaPy/PythonPlot.jl#27.