Y
Y
Yuri2013-06-29 22:10:38
Python
Yuri, 2013-06-29 22:10:38

Problem with Teamcity + Fabfile + Virtualenv?

The task is simple - create a virtual environment, clone the project from Github, install dependencies from req.txt and test the project.
The fabfile.py contains commands for creating a virtual environment, as well as installing dependencies from the req.txt file. An
environment is created, but it is not possible to install dependencies in a specific environment, they are installed in the global environment. I can't activate the environment, the source command does not work in the sh interpreter, and no matter how hard I try to indicate that I want to use the bash interpreter, this does not help.
How to work with source and activate (virtualenv) in sh?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel Tyslyatsky, 2013-06-29
@tek

In extreme cases, you can do it without activate:

virtualevn -p python2.7 path/to/your/env
path/to/your/env/bin/pip install -r req.txt

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question