Fixes #1317 - install packages in virtualenv#1322
Conversation
package.json
Outdated
| "module": "git submodule init && git submodule update", | ||
| "start": "source env/bin/activate && python run.py", | ||
| "virtualenv" : "pip install virtualenv && virtualenv env && source env/bin/activate", | ||
| "virtualenv" : "pip install virtualenv && virtualenv env && npm run pip && source env/bin/activate", |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
|
So, I can repro #1317. I think there's something wrong with I wonder why... |
|
is there any reasons why some of us are using fwiw my process is always: workon webcompatcom #this activates the virtualenv through virtualenvwrapper, but it's the same as just doing virtualenv mostly
# git stuff
# edit
# more git stuff
grunt # only if I touched the JS/CSS
python run.py |
It's a good question. I think the idea was to have an "EZ setup", or a single command to do all the dirty work. In theory npm scripts are just running bash scripts, so it's like a diet Makefile. My workflow is exactly the same as @karlcow's, FWIW. But I only run grunt if I change branches (and suspect style changed) or touch CSS (I have eslint integrated into sublime, so I skip the |
|
@karlcow The only reason is to abstract the commands for the installation of the project. We don't care how many recipes we have for python, js tools etc... One ring (recipes) to rule them all ? 😜 |
8f14078 to
6422ca5
Compare
| }, | ||
| "scripts": { | ||
| "init": "npm run module && npm run virtualenv && npm run pip && npm install && npm run config", | ||
| "setup": "npm run module && npm run virtualenv && npm install && npm run config", |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
|
LGTM, thanks @zoepage! |
The issue #1317 was caused by non-installed packages in the virtualenv.
It seems it's not clearly described for a new contributor in the contribute.md and as we have the scripts anyway, it should be added to the
npm run virtualenv. The install will be skipped when the packages are found.@miketaylr @karlcow could you please confirm? Thanks :)