-
Notifications
You must be signed in to change notification settings - Fork 157
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
Problem caused by within_flit()
when building own package with flit
#573
Comments
Ping @flying-sheep As another point of reference, scirpy also uses flit for it's build system but is able to work with |
I don't think I did anything specific, except maybe that I use the |
That hack means that during flit’s I guess using the same hack really saves you from it, since it prevents your module from importing anything. |
@flying-sheep Well as I said, during flit build all imports are executed. This includes |
You should. The only shortcoming of flit is that it doesn’t have great support for dynamic retrieval of versions: Besides parsing a string literal, it only supports importing the base package namespace. That’s a hen-and-egg problem, since by that point the package’s dependencies are not necessarily available. @takluyver only needs to merge one of pypa/flit#382 and pypa/flit#374, or implement a feature fixing pypa/flit#257 and pypa/flit#271 to make this limitation go away. |
Thannks, for the clarification. I'll try and close this issue! |
Hello,
we are using
anndata
andscanpy
in our FASTGenomics reader module.We are also using flit to built this package. During build flit tries to load
scanpy
, which then loadsanndata
, which ultimately crashes becauseAnnData
cannot be imported due to thewithin_flit()
function called in theanndata/init.py
.Are you aware of any way to overcome this issue?
The text was updated successfully, but these errors were encountered: