Skip to content

Instantly share code, notes, and snippets.

@skulumani
Last active March 14, 2024 03:09
Show Gist options
  • Save skulumani/83979aa6aafc8c70db85f6a950430981 to your computer and use it in GitHub Desktop.
Save skulumani/83979aa6aafc8c70db85f6a950430981 to your computer and use it in GitHub Desktop.
Conda Build from PyPi
  1. Use conda skeleton to copy a pypi package
conda skeleton pypi pyinstrument
conda-build pyinstrument
  1. Can install locally using if you copy the tar ball to the ~/anaconda3/conda-bld
conda install --use-local pyinstrument
  1. Build for Python 2.7, 3.4, 3.5 at a minimum
conda-build --python 2.7 pyinstrument
  1. Convert for all platforms
conda convert --platform all /home/shankar/anaconda3/conda-bld/pyinstrument-version-py27.tar.bz2 -o outputdir/

Make sure you build and convert for all Python versions 5. Upload to Anaconda

conda install anaconda-client
anaconda login
anaconda upload path-to-build

Or set to be automatic

conda config --set anaconda_upload yes
anaconda logout

https://conda.io/docs/user-guide/tutorials/build-pkgs-skeleton.html

https://conda.io/docs/user-guide/tutorials/build-pkgs.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment