Closed KEHANG closed 7 years ago
To be precise, $SRC_DIR
points to different directories at different phases (build phase vs. test phase)
A quick fix would be to add the following section in meta.yaml
:
test:
source_files:
- '*'
meaning copy all the source files to test temporary folder. But that means the binary package needs files that are not included in the package for testing.
A more elegant solution would be including those additional files (mostly test data for unit tests) to the package setup.py
. Seems so far python setup.py install
only includes modules (code files), I'll try to include data files in setup.py
. (as suggested by here) Any comments/suggestions are welcome along the way.
It turns out most unit test modules are not included in binary package of RMG-Py. I can understand why is that. So even I include data files in binary, we cannot fully test the package on its own. Thusm I will stick to the first solution for now: test using source files.
If in the future when we allow binary users to access to all unit test modules, we can always include data files in setup.py
and remove the source_files
in meta.yaml
.
This is a new change made by
conda-build
(https://github.com/conda/conda-build/pull/1630). Basically, the source files (SRC_DIR) will be deleted right before testing phase starts for some safety purpose. However, RMG-Py and other RMG related pkgs (likeopenbabel
inconda-recipes
) are still usingSRC_DIR
in testing phase, e.g. in themeta.yaml
ofRMG-Py
and
meta.yaml
ofopenbabel
:Which already starts causing troubles for new binary generations. New recipes will be updated soon.