1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00
This commit is contained in:
Jannis Leidel 2009-06-25 23:33:58 +02:00
commit 509f0eb594
3 changed files with 16 additions and 10 deletions

View file

@ -1,6 +1,12 @@
News for pip
============
tip
---
* Added ability to override the default log file name (``pip-log.txt``) with
the environmental variable ``$PIP_LOG_FILE``.
0.4
---

2
pip.py
View file

@ -283,7 +283,7 @@ class Command(object):
if log_fp is not None:
log_fp.close()
if exit:
log_fn = './pip-log.txt'
log_fn = os.environ.get('PIP_LOG_FILE', './pip-log.txt')
text = '\n'.join(complete_log)
logger.fatal('Storing complete log in %s' % log_fn)
log_fp = open_logfile_append(log_fn)

View file

@ -69,8 +69,8 @@ What about a Git clone?::
>>> reset_env()
>>> env = get_env()
>>> result = env.run('git', 'clone', 'git://git.websushi.org/apps/django-pagination/', 'django-pagination')
>>> result = env.run('git', 'checkout', 'bdc85c1526d84742362b00a6012b3677a4f69f51',
>>> result = env.run('git', 'clone', 'git://github.com/jezdez/django-pagination.git', 'django-pagination')
>>> result = env.run('git', 'checkout', '1df6507872d73ee387eb375428eafbfc253dfcd8',
... cwd=os.path.join(env.base_path, 'django-pagination'), expect_stderr=True)
>>> result = env.run(os.path.join(env.base_path, 'bin/python'), 'setup.py', 'develop',
... cwd=os.path.join(env.base_path, 'django-pagination'))
@ -78,22 +78,22 @@ What about a Git clone?::
>>> print result
Script result: ...ython... ../../pip.py -E .../test-scratch freeze
-- stderr: --------------------
Git URL does not fit normal structure: git://git.websushi.org/apps/django-pagination/
Git URL does not fit normal structure: git://github.com/jezdez/django-pagination.git
<BLANKLINE>
-- stdout: --------------------
-e git://git.websushi.org/apps/django-pagination/@...#egg=django_pagination-...
-e git://github.com/jezdez/django-pagination.git@...#egg=django_pagination-...
...
<BLANKLINE>
>>> result = run_pip('freeze', '-f', 'git://git.websushi.org/apps/django-pagination/#egg=django_pagination-dev', expect_stderr=True)
>>> result = run_pip('freeze', '-f', 'git://github.com/jezdez/django-pagination.git#egg=django_pagination-dev', expect_stderr=True)
>>> print result
Script result: ...ython... ../../pip.py -E .../test-scratch freeze -f git://git.websushi.org/apps/django-pagination/#egg=django_pagination-dev
Script result: ...ython... ../../pip.py -E .../test-scratch freeze -f git://github.com/jezdez/django-pagination.git#egg=django_pagination-dev
-- stderr: --------------------
Git URL does not fit normal structure: git://git.websushi.org/apps/django-pagination/
Git URL does not fit normal structure: git://github.com/jezdez/django-pagination.git
<BLANKLINE>
-- stdout: --------------------
-f git://git.websushi.org/apps/django-pagination/#egg=django_pagination-dev
-e git://git.websushi.org/apps/django-pagination/@...#egg=django_pagination-dev
-f git://github.com/jezdez/django-pagination.git#egg=django_pagination-dev
-e git://github.com/jezdez/django-pagination.git@...#egg=django_pagination-dev
...
<BLANKLINE>