How to use virtualenv in makefile

后端 未结 8 1091
-上瘾入骨i
-上瘾入骨i 2020-12-24 04:55

I want to perform several operations while working on a specified virtualenv.

For example command

make install

would be equivalent

8条回答
  •  星月不相逢
    2020-12-24 05:41

    You also could use the environment variable called "VIRTUALENVWRAPPER_SCRIPT". Like this:

    install:
        ( \
           source $$VIRTUALENVWRAPPER_SCRIPT; \
           pip install -r requirements.txt; \
        )
    

提交回复
热议问题