Skip to content
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

Unexpected pip behaviour #2

Open
KikeM opened this issue Sep 3, 2019 · 0 comments
Open

Unexpected pip behaviour #2

KikeM opened this issue Sep 3, 2019 · 0 comments

Comments

@KikeM
Copy link
Owner

KikeM commented Sep 3, 2019

Didactic library

This should install numpy==1.14.0 but it doesn't:

classDiagram

pkgA --|> pkgB
pkgA --|> numpy
pkgA : numpy>=1.14.0
pkgA : pkgB

pkgB : numpy==1.14.0
numpy : whatever

Loading
conda create -n tst2 python=3.6 pip=18 -y
conda activate tst2

git clone https://github.com/KikeM/pkgA.git
git clone https://github.com/mmngreco/pkgB.git

cat pkgA/setup.py
cat pkgB/setup.py

pip install pkgA/. --process-dependency-links -I --no-cache-dir
pip freeze | grep numpy  # numpy==1.17.1 ??

This should crash installation process but it doesn't with incompatible versions of numpy.

classDiagram

pkgA --|> pkgB
pkgA --|> numpy
pkgA : numpy>=1.14.0
pkgA : pkgB

pkgB : numpy==1.13.0
numpy : whatever

Loading
cd pkgA
git checkout crash  # pkgA

cd ../pkgB
git checkout crash  # pkgB
cd ..

cat pkgA/setup.py
cat pkgB/setup.py

pip install pkgA/. --process-dependency-links -I --no-cache-dir
pip freeze | grep numpy  # numpy==1.17.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant