Closed jlaura closed 1 year ago
Doing some additional digging, it looks like conda build is placing the built module into /lib/python3.6/site-packages, while the tests are being run using python 3.5 (also inside of the build env.).
yes, by adding the python version constraint in meta.yaml, you're overriding some of conda-build's stuff about which python version it uses. If you remove >=3.*
from your python specs, it should work better.
The equivalent syntax to enforce python-3-only is:
build:
skip: True # [not py3k]
Also, conda-build 3 may do better with this, but I'm not sure. Conda-build 3 is not yet available on conda-forge, so you'll need to get it from defaults.
conda install conda-build=3.*
should do the trick (the version spec forces it to look for the right version, even though conda-forge is a higher priority channel)
@msarahan Success. Thanks! Is this documented somewhere? The desired behavior? Or a bug? Not sure if this should be closed or left open.
Hi there, thank you for your contribution!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed automatically if no further activity occurs.
If you would like this issue to remain open please:
NOTE: If this issue was closed prematurely, please leave a comment.
Thanks!
I am trying to build a Cython wrapper to a C++ library using conda. The source project has a working setup.py that I am using (
python setup.py install
) to build and install into a condo-env. All pytest tests then run successfully.When I switch to doing a conda build recipe/, the build is successful, but the tests fails with an import error for
cycsm
(the name of the project). I tried incrementing the build number, cleaning conda, and purging the build cache thinking that that could be the issue - no joy. My final thought was that this might have to do with python3 imports, but fooling around with those was also unsuccessful. Any insights appreciated as I can not get a Cython built package to pass import tests.The
tmp
directory that is created with the build has an_t_env
created with python. Checking out thesite-packages
in that env. the cython compiled package is not installed, e.g.,:and
Conda version: 2.1.17 (freshly 'updated' via condo-forge)
Files used for the build:
meta.yml
build.sh
setup.py