-
Notifications
You must be signed in to change notification settings - Fork 33
How to use with tox #30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
It would help your cause (resolving this issue) if you provided more information:
pip-accel aims to be a drop in replacement to pip but it does have different semantics which sometimes makes the "drop in" part problematic :-). Also it requires both the Python pip package and the pip command to be installed (the second part is an implementation detail which I might try to solve). Long story short: In order to help you with this issue I need a lot more information. If possible, something I can run myself to avoid remote debugging using GitHub messages as a proxy ;-). |
Fixed up some of the Typos. The trouble I'm having is installing here's an example tox.ini # content of: tox.ini , put in same dir as setup.py
[tox]
install_command = pip-accel install --pre {opts} {packages}
envlist = py26,py27
[testenv]
deps=
pip-accel # not installed before install_command is run (to install pip-accel)
pytest # install pytest in the venvs
commands=py.test # or 'nosetests' or ... |
Ah, s/movement/moment/. That makes more sense, thank you :-). I think I found something that works, although it's a bit of a (creative) hack. First create the shell script #!/bin/bash
BIN_DIR="$(echo $PATH | tr : '\n' | head -n1)"
export VIRTUAL_ENV="$(dirname "$BIN_DIR")"
if [ ! -x "$VIRTUAL_ENV/bin/pip-accel" ]; then
"$VIRTUAL_ENV/bin/pip" install pip-accel
fi
"$VIRTUAL_ENV/bin/pip-accel" install --pre "$@" Then add the following install_command = pip-accel-for-tox {opts} {packages} Tox will print a warning because the install command is located outside the test environment, but it will still execute the install command and this seems to work fine... Does this help? |
You can whitelist that command. This looks very useful. I'll raise a PR with that bash script in the docs that fixes this issue.
|
I'm closing this issue now because there's nothing more for me to do here. I did add a link to this issue in the readme (which is also the homepage on GitHub and PyPI) so that other users can more easily find how to do this. |
I got the same issue a half year ago.
|
tox 1.8+ should now export VIRTUAL_ENV. At least according to https://bitbucket.org/hpk42/tox/issues/152 |
At the moment we use tox to build our virtualenvs before tests.
It doesn't seem possible to call an externally installed
pip-accel
from within another virtualenv (it installs it to the host virtualenv), nor to installpip-accel
into the virtualenv before the install process of tox startsThe text was updated successfully, but these errors were encountered: