conda-build performs the following steps:
Reads the metadata.
Downloads the source into a cache.
Extracts the source into the source directory.
Applies any patches.
Re-evaluates the metadata, if source is necessary to fill any metadata values.
Creates a build environment, and then installs the build dependencies there.
Runs the build script. The current working directory is the source directory with environment variables set. The build script installs into the build environment.
Performs some necessary post-processing steps, such as shebang and rpath.
Creates a conda package containing all the files in the build environment that are new from step 5, along with the necessary conda package metadata.
Tests the new conda package if the recipe includes tests:
Deletes the build environment.
Creates a test environment with the package and its dependencies.
Runs the test scripts.
The conda-recipes repo contains example recipes for many conda packages.
From the repos folder, run the following commands:
>>> conda skeleton pypi jplephem # Dependency located on pypi
>>> conda skeleton pypi sgp4 # Dependency located on pypi
>>> conda skeleton pypi skyfield
From the repos folder, run the following commands:
>>> conda build --python 3.6 --check skyfield
From the repos folder, run the following commands:
>>> conda build --python 3.6 --source skyfield
From the repos folder, run the following commands:
>>> conda build --python 3.6 --no-test jplephem # Dependency
>>> conda build --python 3.6 --no-test sgp4 # Dependency
>>> conda build --python 3.6 --no-test skyfield
From the repos folder, run the following commands:
>>> conda build --python 3.6 jplephem # Dependency
>>> conda build --python 3.6 sgp4 # Dependency
>>> conda build --python 3.6 skyfield
From the repos folder, run the following commands:
>>> conda install --use-local skyfield
Test the installation from the terminal:
>>> python
>>> import skyfield