Skip to content
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

Failure with Python 2.7 #2

Open
pradal opened this issue May 11, 2020 · 4 comments
Open

Failure with Python 2.7 #2

pradal opened this issue May 11, 2020 · 4 comments
Assignees

Comments

@pradal
Copy link

pradal commented May 11, 2020

Failure of PyCropML on appveyor: https://ci.appveyor.com/project/openalea/pycrop2ml/build/job/y3mwsgjukwdwbyvr

Executing: conda.exe build --python=27 ..\conda
'conda.exe' is not recognized as an internal or external command,
operable program or batch file.
Command exited with code 1
call on_failure.bat

@pradal
Copy link
Author

pradal commented May 13, 2020

The same issue with openalea.core:

conda.exe build --python=2. ..\conda

The PYTHON VERSION is wrong (2. rather than 27)
Use the CONDA_PY env var instead:
doc

@fredboudon
Copy link

@pradal Normally PYTHON_VERSION should be formatted as 2.7 while CONDA_PY should be 27.
CONDA_PY should be set as env variable while PYTHON_VERSION is passed as argument to conda build --python.
It seems that default detection of PYTHON_VERSION is buggy and should not gives 2.

@pradal
Copy link
Author

pradal commented May 13, 2020

Look at upstream repo:
Pierre add a file python_version.py.

And it call the generated script in the build_script

@pradal
Copy link
Author

pradal commented May 13, 2020

But if I set PYTHON_VERSION, I have yet the error.
It is just afer

Configuring Windows SDK "v7.0" for Python 2 on a 64 bit architecture
Setting SDK environment relative to C:\Program Files\Microsoft SDKs\Windows\v7.0.
Targeting Windows 7 x64 RELEASE

Perhaps this disable the conda env?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants