-
Notifications
You must be signed in to change notification settings - Fork 7
add: if for scipy and linting #251
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
Conversation
setup_deb.sh
Outdated
kornia==0.6 \ | ||
invisible-watermark \ | ||
streamlit-drawable-canvas==0.8.0 \ | ||
safetensors >=0.1.1 >=0.7.5 >=0.73.1 >=0.1.5 >=0.3.1 |
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.
Looks like version specifiers of a few different packages got moved into this line
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.
Good catch, missed that.
setup_deb.sh
Outdated
python3 -c ' | ||
import sys | ||
version = sys.version_info | ||
if version.major == 3 and version.minor == 11: | ||
print("pip3 install --no-deps --upgrade scipy==1.10.0") | ||
else: | ||
print("pip3 install --no-deps --upgrade scipy==1.8.0") | ||
' | sh |
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.
I'm not a fan of this. I think we should instead move all Python requirements to a requirements.txt file and use environment markers in cases like this https://peps.python.org/pep-0508/#environment-markers
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.
Yes, I agree. Using requirements.txt with 'python_version' marker will be much more elegant solution. I'm using it in manifests repo. However, it's up to you, If I can make this change, as it's big one.
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.
I think the behaviour should stay the same if we keep all the flags and versions the same, so it wouldn't be that big of a change. @jan-grzybek-ampere what do you think?
setup_deb.sh
Outdated
safetensors>=0.3.1 | ||
|
||
# get almost all python deps | ||
pip3 install --no-deps --upgrade -r requirments.txt |
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.
Looks like a typo here, but other than that I think everything looks fine
The most important part is:
It's needed during working with python 3.11.
Tests: