-
-
Notifications
You must be signed in to change notification settings - Fork 49
How to build Anaconda and Pip package
To build the package, it is necessary to have anaconda
installed. The
files needed to build the package are located in the recipe
folder.
Theacpype
script is located in thescript
folder so that your path can be found by the entry_points
of setup_conda.py
.
After acpype
script modifications, it is necessary to replace the
version:
field in the meta.yaml
files and version =
in the
setup_conda.py
file.
In setup_conda.py
you can change the classifiers
if, for example, the python version is changed.
To create the tar.bz2
file it is necessary to be in the same directory
where the acpype
folder is located. The command
conda build –c acpype acpype
build the package. The package will be available in the
anaconda3/conda-bld/Linux-64
folder (if using the Linux platform).
Conversions to another platform can be done using the command:
conda convert –platform osx-64 acpype-xxxx.xx.xx.xx-py37_0.tar.bz2
(To convert to 64-bit OSX)
conda convert –platform linux-64 acpype-xxxx.xx.xx.xx-py37_0.tar.bz2
(To convert to 64-bit Linux)
To upload to the Anaconda Cloud server:
Use the anaconda login
command to connect to the server;
Enter credentials;
Use the anaconda upload command to send to the server:
anaconda upload ~/linux-64/acpype-xxxx.xx.xx.xx-py37_0.tar.bz2
anaconda upload ~/osx-64/acpype-xxxx.xx.xx.xx-py37_0.tar.bz2
To update the pip package, it is only necessary to modify the
__updated__ =
field with the latest version of the acpype.py
script.
When typing the command
pip install git+https://github.com/alanwilter/acpype.git
the WHL file is automatically built into a temporary folder and then installed.