Python, virtualenv - Can I use one Pyramid project with multiple virtualenvs on different computers?

I'm really interested in trying the Pyramid Framework, but only half of my programming time is spent on my computer here at home; I spend considerable time at school and use their computers, and also, according to the documentation for virtualenv, environments cannot move around like projects. What I'm going to do is install another virtualenv for Pyramid projects on computers that I use in school, besides one at home. Will I be able to do this?

+3
source share
3 answers

In your file setup.pyat the root of your project, you just need to list all the dependencies that you have in requires.

Then when your virtualenv is activated, you will run

python setup.py develop

This will install the missing dependencies for your current virtualenv.

Example:

requires = ['pyramid',
            'WebError',
            'pymongo',
            'mock',
            'formencode']
+4
source
  • Use something like Dropbox to sync the source file between machines.
  • Use pip with virtualenv, save requirements.txt , which lists all the dependencies for your software.
+2
source

. . github bitbucket / .

+1

Source: https://habr.com/ru/post/1793790/


All Articles