I am building a Python package using conda-build
. Right now, my structure looks like this:
- my_recipe/
- meta.yaml
- build.sh
And my meta.yaml
reads thusly:
package:
name: my_pkg
version: "0.2.0"
source:
path: ../my_pkg
requirements:
build:
- python
- setuptools
run:
- python
- pandas
- numpy
- plotly
- matplotlib
- pyqtgraph
- pyopengl
- gdal
- scipy
- scikit-image
The package itself builds correctly when I run
conda-build my_recipe/
and it installs successfully when I run
conda install -n my_env --use-local ~/miniconda3/envs/my_env/conda-bld/linux-64/my_pkg-0.2.0-py36_0.tar.bz2
However, none of the dependencies listed under run
seem to install along with the package. For example, when I import the package in Python it says that pandas
could not be found.
Are my dependencies listed in the correct location? Do I also need to list the dependencies in setup.py
? The documentation is not very clear on where this information should be.
I've had luck telling conda
to treat the local directory as a channel:
conda install my-package-name -c file:///FULL_PATH_TO_CONDA/envs/my_env/conda-bld/
I figured this out based on instructions here, although note I didn't have to run conda index
first because conda build
had already created repodata.json
files.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With