How to install a PyPi distribution package in the conda repository.
conda install -y conda-build
conda update -y conda
conda update -y conda-build
cd userHomeDirectory
conda skeleton pypi packageName
# ''pypi'' is the location of the PyPi package
# Example
conda skeleton pypi pyinstrument
ls packageName/packageNam
To create a build recip, we need the file:
Steps:
cd packageName
conda-build .
# or
conda build meta.yaml --cache-dir /data/conda-cache/
# Optional
# Build for python 3.3
conda-build --python 3.3 .
# Build for an other platform
# Windows
conda convert -f --platform all C:\Users\jsmith\Miniconda\conda-bld\win-64\pyinstrument-0.13.1-py27_0.tar.bz2 -o outputdir\
# Linux / Macos
conda convert --platform all /home/jsmith/miniconda/conda-bld/linux-64/pyinstrument-0.13.1-py27_0.tar.bz2 -o outputdir/
The build output stream shows the build path with the following pattern
conda_home/conda-bld/$ARCH/packageName-packageVersion-PythonVersion.bz2
where ARCH is one of osx-64, linux-32, linux-64, win-32 or win-64
Example of path
conda install --use-local packageName
# example with pyinstrument
conda install --use-local pyinstrument
conda list
see Anaconda.org (Anaconda Cloud)