package your commonly used funcs using conda
my dev in conda: https://anaconda.org/longw010/longwdev
After the code is frozen, we can start with setting up a conda package and register it. Assume you already registered an account at anaconda,
The minimal conda package requires:
the package name and version number
set up a meta.yml or (build.sh&bld.bat)
use
conda build
to package itlogin to anaconda and upload it to the repo
The options to extend includes:
make the package work in all systems
(osx-64 linux-32 linux-64 win-32 win-64)
or multiple python version
Steps for multiple platforms support:
use
conda convert tar.bz2 -p linux-64 -o output
enter the output and upload the zipped file into the anaconda cloud
check updates at https://anaconda.org/longw010/longwdev/files
Issues I met:
If I am under the src, use
conda build .
directly.conda build import test fails, but import works if test import is ignored in meta.yaml (https://github.com/conda/conda-build/issues/3074)
References:
conda-build:
Last updated
Was this helpful?