[Distutils] environment replication
Robin Becker
robin at reportlab.com
Thu May 4 09:48:20 EDT 2017
On 04/05/2017 12:40, Wes Turner wrote:
> On Thursday, May 4, 2017, Robin Becker <robin at reportlab.com> wrote:
>
>> I have a bunch of virtual environments which need replicating from one
>> machine to another. In the past rsync was OK, but now with slightly
>> different environments I have been using pip freeze to get a list of the
>> installed requirements and pip install to carry out changes to the remote
>> environment.
>>
>> Is there a way to resolve issues where pip reports a different package to
>> the one installed eg
>>
>>
> After you've installed as editable with `pip install - git+
> https://GitHub.com/project/team`, pip freeze is not displaying the source
> url?
>
> Or did you manually git clone and then `python setup.py install` or `pip
> install -e`?
>
>
Unfortunately I didn't do the original install; developers hacking on live
servers :(, but the requirements.txt file shows just
git+http://github.com/django-cumulus/django-cumulus.git@master#egg=django-cumulus
so I must assume that was how the installation took place. I don't think the
intent is to edit anything so the developers don't care.
As a test I did the install as above and then I see pip freeze respond with
django-cumulus===1.0.19-22-g506121d
If I try the method you suggest with -e flag then I do get something more
-e
git+http://github.com/django-cumulus/django-cumulus.git@506121d8669e1cce8843d9f76f2767324f8b1e78#egg=django_cumulus
that is certainly more usable, but is not ideal as the hacker/developers will
tend to hack the installation :(
thanks
>
>>
>> the original requirements say
>>
........
--
Robin Becker
More information about the Distutils-SIG
mailing list