-
Notifications
You must be signed in to change notification settings - Fork 40
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
isolated_build does not work with tox-conda #45
Comments
I have the same issue. I've got as far as understanding that inside the tox package in |
Something like this perhaps: diff --git a/tox_conda/plugin.py b/tox_conda/plugin.py
index f1aa6e9..8c32da3 100644
--- a/tox_conda/plugin.py
+++ b/tox_conda/plugin.py
@@ -57,6 +57,16 @@ def tox_configure(config):
conda_deps = [DepConfig(str(name)) for name in envconfig.conda_deps]
envconfig.deps.extend(conda_deps)
+ def get_envpython(self=envconfig):
+ """ path to python/jython executable. """
+ if "jython" in str(self.basepython):
+ name = "jython"
+ else:
+ name = "python"
+ return self.envdir.join(name)
+
+ envconfig.get_envpython = get_envpython
+
def find_conda(action):
# This should work if we're not already in an environment |
Could you try with a recent version of tox and tox-conda? |
I've moved on from the project that was using tox-conda now and no longer use Python in my day job so I'm not really in a position to test this. Maybe @jondye could though? |
@jondye 0.8.1 has a fix for isolated build, you may give it a try. |
No update from author: closing. |
I'm having some issues getting isolated builds to work in tox when using
tox-conda
. Specifically, I have the followingsetup.cfg
:And I have a
pyproject.toml
such as:Running
tox -e foo
from a conda environment containing tox produces the following error:It seems to me that there is no script named
python
in theScripts
folder when usingtox-conda
. However, when I removetox-conda
the isolated build works fine and I see apython
file in theScripts
folder of the pip virtual env. The screenshot below shows the contents of.tox\.package\Scripts
when usingtox-conda
:The full contents of the most recent log file, specifically
.tox/package/log/.package-2.log
look like:Additional Details:
OS: Windows 10
conda: 4.7.11
tox: 3.15.0
The text was updated successfully, but these errors were encountered: