-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Lensfunpy #10199
Lensfunpy #10199
Conversation
Hi! This is the friendly automated conda-forge-linting service. I just wanted to let you know that I linted all conda-recipes in your PR ( |
Getting the error
@conda-forge/help-c-cpp @conda-forge/help-python-c @conda-forge/staged-recipes I'm not sure the cause for the error, as The extra "=0" on the end of the version is what's got me stuck ATM |
Frack. This is my fault. The run export in the |
Mmmmk. Merge this one when it passes and try again. |
OK. Wait about 2 hours and then retry this build. It takes a little while for new packages to hit the index. |
I will look into this further tonight. |
These build errors are not due to the lensfun package missing a run export. It looks like something else. There is a git submodule that is being pulled but failing and a compilation issue as well. Check out the logs https://dev.azure.com/conda-forge/feedstock-builds/_build/results?buildId=95521&view=logs |
https://github.com/letmaik/lensfunpy/blob/v1.6.1/lensfunpy/_lensfun.pyx#L164
=> |
Sounds good. You can make a pr against the existing feedstock. |
We could patch https://github.com/letmaik/lensfunpy/blob/v1.6.1/setup.py#L222 -needsCompile = any(s in cmdline for s in ['install', 'bdist', 'build_ext', 'nosetests'])
+needsCompile = False maybe? |
I was in the middle of suggesting a patch when @mbargull beat me to it. Yes this is the right way to go. |
@beckermr we're confused why this only fails on osx.. could you take a look when you get a chance |
This patch seems like it is a little out of my depth.. how much are we needing to change? Could we just remove the win/osx if statement & let all cases use |
Probably easiest to just set the value correctly in the if statement as opposed to trying to use pkg_config which may not work. Something like |
It's good to just remove that condition for osx and let it use pkg-config |
You also need to add |
Ahhh ok. I'm gonna let @isuruf take over here! ;p |
@isuruf there's a function called |
No, what I'm saying is for |
@isuruf please review |
recipes/lensfunpy/meta.yaml
Outdated
build: | ||
- {{ compiler('c') }} | ||
- {{ compiler('cxx') }} | ||
- lensfun <0.3.95 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should only be in host
recipes/lensfunpy/meta.yaml
Outdated
- python | ||
- cython | ||
- nose | ||
- wheel >=0.25 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you need wheel
at runtime?
recipes/lensfunpy/meta.yaml
Outdated
- nose | ||
- wheel >=0.25 | ||
- sphinx | ||
- sphinx_rtd_theme |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sphinx is for docs which is not needed at runtime
recipes/lensfunpy/meta.yaml
Outdated
run: | ||
- python | ||
- cython | ||
- nose |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is needed only for testing. No need at runtime.
- pip | ||
- python | ||
- lensfun <0.3.95 | ||
- numpy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@isuruf please re-review changes |
recipes/lensfunpy/meta.yaml
Outdated
- numpy | ||
- sphinx | ||
- wheel >=0.25 | ||
- enum34 # [py<34] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you need the 3 packages above?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They were listed in a dev-requirements.txt
file so we weren't sure
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's needed at runtime, so no need for it to be in host
. Only run
is enough
recipes/lensfunpy/meta.yaml
Outdated
- python | ||
- cython | ||
- scipy | ||
- lensfun <0.3.95 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- lensfun <0.3.95 | |
- lensfun <0.3.95 | |
- {{ pin_compatible("lensfun") }} |
@isuruf ready for review |
recipes/lensfunpy/meta.yaml
Outdated
- lensfun <0.3.95 | ||
- {{ pin_compatible('lensfun') }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@isuruf should I have left lensfun <0.3.95
in there as well as the pin compatible dep? Or is it okay to replace like this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both are needed IMO.
@@ -0,0 +1,21 @@ | |||
The MIT License (MIT) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you open an issue upstream about including the license in the sdist?
letmaik/lensfunpy#23 |
Checklist
url
) rather than a repo (e.g.git_url
) is used in your recipe (see here for more details)