-
Notifications
You must be signed in to change notification settings - Fork 52
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
Add WASM version (noarch
, no LinAlg solvers) of bw2calc
#616
Conversation
@martinRenou, could you have a look please? |
Thanks! Would you be able to add a test (just an import should be fine), similar to what we do for the pandas recipe for example? |
Hmm... micromamba seems to have no trouble installing
But the simple import test fails:
|
I tried to add the build script we had over on conda-forge:
and then the one from the
unfortunately, that's not working. |
The relevant error message is here:
It looks like importlib is failing to parse the version of |
Yes, so it seems - unfortunately, I don't have the resources for more troubleshooting here. Many thanks for your help! I believe it will be best to close this PR. We'll stick with conda-forge for the Brightway packages. |
Whether it's on conda-forge as noarch or published on emscripten-forge, I suspect you will be hit by this error. But it's better to have it as noarch on conda-forge anyway IMO. |
As far as I can see, we have a basic import test in the recipe on conda-forge, which did not cause issues with |
The test here runs in the browser context (similar to the context So it's something that will need to be fixed in order for bw2calc to work in jlite. |
Ah, well that's not ideal 😕 |
Is there a way for me to use my own fork of the |
so lets just pach this line here https://github.com/brightway-lca/bw_processing/blob/main/bw_processing/__init__.py#L48C15-L48C32 and maybe even hard code the version. Probably https://github.com/brightway-lca/bw_processing/blob/main/bw_processing/utils.py#L25 is not working well with pyjs / empack. Probably we filter out the metadata when packaging the pkg with empack. |
jeah in the recipe in the source section you can use a |
Yeah that's what I was thinking. I'd personally prefer patching empack to not filter out the metadata for this |
@DerThorsten, if you're positive that the |
Jeah I think so! |
This might be as simple as a dash/underscore (
But how do I specify that only a single dependendency of the package in the recipe is to be loaded from git (and from a specific branch, no less)? From the conda documentation you linked, I guess that I'll need to use Source from multiple sources:
|
This was discussed with @martinRenou in conda-forge/bw2calc-feedstock#14