I am trying to build a package using the "conda build fibtestpackage" command.
The "fibtestpackage" is built using Cython, hence in the .sh file I have the command:
python setup.py build_ext --inplace
Even though the Build ends successfully, and the output is as expected:
Fetching packages ... fibtestpackage-1.0.0 100% |################################| Time: 0:00:00 3.03 MB/s
Extracting packages ... [ COMPLETE ] |##################################################| 100%
Linking packages ... [ COMPLETE ] |##################################################| 100%
the one test I have in the YAML file fails. The only test I have looks like this:
test:
# Python imports
imports:
- fibtestpackage
#- numpy
#- samplers
Hence, its an import error,
ImportError: No module named fibtestpackage
My first guess for why there is an importerror is because the .SO, .C, and .PYX files generated by the build (and the other files of the library) are NOT being place into the anaconda/lib/python2.7/site-packages/ folder where the other modules are located. Do I need to specify this in the shell file or should this be covered by the "python setup.py build_ext --inplace" command?
My second guess is that there are two different versions of conda (after updating) in the distribution,
1) Python 2.7.8 |Anaconda 2.1.0 (64-bit)| (default, Aug 21 2014, 18:22:21)
2) Python 2.7.8 |Continuum Analytics, Inc.| (default, Aug 21 2014, 18:22:21)
Could this be causing the issue? Perhaps the build environment is installing libraries in the wrong one?
Thank you in advance for your help!