python - 'pip install' two modules with the same namespace package -


i've created 2 wheels containing respectively foo/comp1.py , foo/comp2.py. 'foo' namespace package (pep420). when installing these 2 packages in same folder expect pip merge them. fails. expected? why?

example:

pip_namespace>unzip -l comp1/dist/foo.comp1-1.0.0-py3-none-any.whl archive:  comp1/dist/foo.comp1-1.0.0-py3-none-any.whl   length      date    time    name ---------  ---------- -----   ----         0  2016-01-27 14:45   foo/comp1.py        31  2016-01-27 14:55   foo.comp1-1.0.0.dist-info/description.rst       377  2016-01-27 14:55   foo.comp1-1.0.0.dist-info/metadata.json         4  2016-01-27 14:55   foo.comp1-1.0.0.dist-info/top_level.txt        92  2016-01-27 14:55   foo.comp1-1.0.0.dist-info/wheel       244  2016-01-27 14:55   foo.comp1-1.0.0.dist-info/metadata       568  2016-01-27 14:55   foo.comp1-1.0.0.dist-info/record ---------                     -------      1316                     7 files  pip_namespace>unzip -l comp2/dist/foo.comp2-1.0.0-py3-none-any.whl archive:  comp2/dist/foo.comp2-1.0.0-py3-none-any.whl   length      date    time    name ---------  ---------- -----   ----         0  2016-01-27 14:56   foo/comp2.py        31  2016-01-27 14:57   foo.comp2-1.0.0.dist-info/description.rst       377  2016-01-27 14:57   foo.comp2-1.0.0.dist-info/metadata.json         4  2016-01-27 14:57   foo.comp2-1.0.0.dist-info/top_level.txt        92  2016-01-27 14:57   foo.comp2-1.0.0.dist-info/wheel       244  2016-01-27 14:57   foo.comp2-1.0.0.dist-info/metadata       568  2016-01-27 14:57   foo.comp2-1.0.0.dist-info/record ---------                     -------      1316                     7 files  pip_namespace>pip install -t test_pip comp1/dist/foo.comp1-1.0.0-py3-none-any.whl processing ./comp1/dist/foo.comp1-1.0.0-py3-none-any.whl installing collected packages: foo.comp1 installed foo.comp1 using pip version 7.1.2, version 8.0.2 available. should consider upgrading via 'pip install --upgrade pip' command.  pip_namespace>pip install -t test_pip comp2/dist/foo.comp2-1.0.0-py3-none-any.whl processing ./comp2/dist/foo.comp2-1.0.0-py3-none-any.whl installing collected packages: foo.comp2 installed foo.comp2 target directory /remote/devsup/users/flemaitre/tmp/pip_namespace/test_pip/foo exists. specify --upgrade force replacement. using pip version 7.1.2, version 8.0.2 available. should consider upgrading via 'pip install --upgrade pip' command. 

as result comp2 missing:

pip_namespace>find test_pip/foo test_pip/foo test_pip/foo/__pycache__ test_pip/foo/__pycache__/comp1.cpython-35.pyc test_pip/foo/comp1.py 


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -