Skip to content

pip install -e from git branch is not correct when done from a freeze requirements file #1735

Closed
@esplinr

Description

@esplinr

I want to install Django into Pip such that it tracks the 1.7.x branch from beta through release. This is possible with this command:

pip3 install -e  git://github.com/django/django.git@stable/1.7.x#egg=django

When I go into the Django checkout within my virtual env, git reports: "On branch stable-1.7". git pull functions correctly.

But pip3 freeze does not produce a correct requirements.txt:

pip3 freeze > requirements.txt
-e git://github.com/django/django.git@edaff9b0dffc9ad984671673214d671d84abe144#egg=Django-origin/stable/1.7.x

The git address hash in the address produced by freeze is to a specific commit on the 1.7.x branch. When I go into the Django checkout within my virtualenv, git reports: "HEAD detached at edaff9b". git pull does not see any newer changes because "You are not currently on a branch".

My environment:
Python 3.3, using a pyvenv virtual environment, and pip 1.5.4 installed with get-pip.py

My team mate is also seeing the behavior using Python 3.3 and virtualenv+pip installed through Homebrew.

I think this issue is related to #647.

Metadata

Metadata

Assignees

No one assigned

    Labels

    auto-lockedOutdated issues that have been locked by automation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions