pypa/pip — Issue #389: mercurial does not install from a requirement file, if hg+... url is also present.
Author: rodcloutier
Created: 2011-11-16 19:26:34+00:00
State: open

On a machine/virtualenv that does not have mercurial installed, trying to install mercurial and a mercurial based url, from a requirement file, results in a message stating that mercurial cannot be found.

Installing only mercurial works fine.

$ hg
-bash: hg: command not found
$ cat req.txt

mercurial==2.0
hg+https://bitbucket.org/wkornewald/djangotoolbox#egg=djangotoolbox

$ pip install -r req.txt
Downloading/unpacking mercurial==2.0 (from -r req.txt (line 2))
Running setup.py egg_info for package mercurial

Downloading/unpacking djangotoolbox from hg+https://bitbucket.org/wkornewald/djangotoolbox (from -r req.txt (line 3))
Cloning hg https://bitbucket.org/wkornewald/djangotoolbox to ./build/djangotoolbox
Cannot find command 'hg'
Storing complete log in /Users/rod/.pip/pip.log

$ echo mercurial==2.0 > req,txt
$ pip install -r req.txt
Downloading/unpacking mercurial==2.0 (from -r req.txt (line 2))
Running setup.py egg_info for package mercurial

Installing collected packages: mercurial
Running setup.py install for mercurial
generating mercurial/locale/da/LC_MESSAGES/hg.mo from i18n/da.po
msgfmt -v -o mercurial/locale/da/LC_MESSAGES/hg.mo i18n/da.po -c
1945 translated messages, 1186 untranslated messages.
generating mercurial/locale/de/LC_MESSAGES/hg.mo from i18n/de.po
msgfmt -v -o mercurial/locale/de/LC_MESSAGES/hg.mo i18n/de.po -c
2226 translated messages, 378 fuzzy translations, 503 untranslated messages.
generating mercurial/locale/el/LC_MESSAGES/hg.mo from i18n/el.po
msgfmt -v -o mercurial/locale/el/LC_MESSAGES/hg.mo i18n/el.po -c
315 translated messages, 35 fuzzy translations, 1933 untranslated messages.
generating mercurial/locale/fr/LC_MESSAGES/hg.mo from i18n/fr.po
msgfmt -v -o mercurial/locale/fr/LC_MESSAGES/hg.mo i18n/fr.po -c
358 translated messages, 104 fuzzy translations, 1775 untranslated messages.
generating mercurial/locale/it/LC_MESSAGES/hg.mo from i18n/it.po
msgfmt -v -o mercurial/locale/it/LC_MESSAGES/hg.mo i18n/it.po -c
1865 translated messages, 6 fuzzy translations, 1237 untranslated messages.
generating mercurial/locale/ja/LC_MESSAGES/hg.mo from i18n/ja.po
msgfmt -v -o mercurial/locale/ja/LC_MESSAGES/hg.mo i18n/ja.po -c
3102 translated messages, 39 fuzzy translations, 731 untranslated messages.
generating mercurial/locale/pt_BR/LC_MESSAGES/hg.mo from i18n/pt_BR.po
msgfmt -v -o mercurial/locale/pt_BR/LC_MESSAGES/hg.mo i18n/pt_BR.po -c
3872 translated messages.
generating mercurial/locale/ro/LC_MESSAGES/hg.mo from i18n/ro.po
msgfmt -v -o mercurial/locale/ro/LC_MESSAGES/hg.mo i18n/ro.po -c
678 translated messages, 2 fuzzy translations, 2806 untranslated messages.
generating mercurial/locale/ru/LC_MESSAGES/hg.mo from i18n/ru.po
msgfmt -v -o mercurial/locale/ru/LC_MESSAGES/hg.mo i18n/ru.po -c
1580 translated messages, 7 fuzzy translations, 2030 untranslated messages.
generating mercurial/locale/sv/LC_MESSAGES/hg.mo from i18n/sv.po
msgfmt -v -o mercurial/locale/sv/LC_MESSAGES/hg.mo i18n/sv.po -c
1491 translated messages, 2129 untranslated messages.
generating mercurial/locale/zh_CN/LC_MESSAGES/hg.mo from i18n/zh_CN.po
msgfmt -v -o mercurial/locale/zh_CN/LC_MESSAGES/hg.mo i18n/zh_CN.po -c
335 translated messages, 204 fuzzy translations, 1791 untranslated messages.
generating mercurial/locale/zh_TW/LC_MESSAGES/hg.mo from i18n/zh_TW.po
msgfmt -v -o mercurial/locale/zh_TW/LC_MESSAGES/hg.mo i18n/zh_TW.po -c
640 translated messages, 8 fuzzy translations, 2372 untranslated messages.
building 'mercurial.base85' extension
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -g -O2 -DNDEBUG -g -O3 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c mercurial/base85.c -o build/temp.macosx-10.6-intel-2.7/mercurial/base85.o
gcc-4.2 -isysroot / -g -bundle -undefined dynamic_lookup -isysroot / -g build/temp.macosx-10.6-intel-2.7/mercurial/base85.o -o build/lib.macosx-10.6-intel-2.7/mercurial/base85.so
building 'mercurial.bdiff' extension
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -g -O2 -DNDEBUG -g -O3 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c mercurial/bdiff.c -o build/temp.macosx-10.6-intel-2.7/mercurial/bdiff.o
gcc-4.2 -isysroot / -g -bundle -undefined dynamic_lookup -isysroot / -g build/temp.macosx-10.6-intel-2.7/mercurial/bdiff.o -o build/lib.macosx-10.6-intel-2.7/mercurial/bdiff.so
building 'mercurial.diffhelpers' extension
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -g -O2 -DNDEBUG -g -O3 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c mercurial/diffhelpers.c -o build/temp.macosx-10.6-intel-2.7/mercurial/diffhelpers.o
gcc-4.2 -isysroot / -g -bundle -undefined dynamic_lookup -isysroot / -g build/temp.macosx-10.6-intel-2.7/mercurial/diffhelpers.o -o build/lib.macosx-10.6-intel-2.7/mercurial/diffhelpers.so
building 'mercurial.mpatch' extension
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -g -O2 -DNDEBUG -g -O3 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c mercurial/mpatch.c -o build/temp.macosx-10.6-intel-2.7/mercurial/mpatch.o
gcc-4.2 -isysroot / -g -bundle -undefined dynamic_lookup -isysroot / -g build/temp.macosx-10.6-intel-2.7/mercurial/mpatch.o -o build/lib.macosx-10.6-intel-2.7/mercurial/mpatch.so
building 'mercurial.parsers' extension
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -g -O2 -DNDEBUG -g -O3 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c mercurial/parsers.c -o build/temp.macosx-10.6-intel-2.7/mercurial/parsers.o
gcc-4.2 -isysroot / -g -bundle -undefined dynamic_lookup -isysroot / -g build/temp.macosx-10.6-intel-2.7/mercurial/parsers.o -o build/lib.macosx-10.6-intel-2.7/mercurial/parsers.so
building 'mercurial.osutil' extension
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -g -O2 -DNDEBUG -g -O3 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c mercurial/osutil.c -o build/temp.macosx-10.6-intel-2.7/mercurial/osutil.o
gcc-4.2 -isysroot / -g -bundle -undefined dynamic_lookup -isysroot / -g build/temp.macosx-10.6-intel-2.7/mercurial/osutil.o -o build/lib.macosx-10.6-intel-2.7/mercurial/osutil.so -framework ApplicationServices
changing mode of build/scripts-2.7/hg from 644 to 755

changing mode of /Users/rod/dev/bin/hg to 755
Successfully installed mercurial
Cleaning up...