Closed LarsDu closed 5 years ago
Pomoxis is provided as a source distribution only through github, all python requirements are listed in the requirements.txt, and third party binaries are included as submodules. A list of required system libraries is present in the README. There are no currently plans to create a conda package.
Having said that, most of the installation is handled in the usual way by setuptools (the only non-trivial part is compilation and inclusion of the third party binaries). My understanding of conda is that it wouldn't be difficult for someone to create a conda recipe from the existing build, maybe someone over at bioconda-recipes can do this.
conda create -n pomoxis -c bioconda -c conda-forge porechop samtools=1.8 bcftools=1.7 seqkit=0.8 bwa bwapy miniasm minimap2 racon python=3
conda activate pomoxis
pip install -r requirements.txt
setup.py
to remove the last four lines in the get_setuptools_script_dir
function (keep the return) and comment out data_files
from the setup
functionpython setup.py install --single-version-externally-managed --record=out.txt
pip
stuff; I'm going off memory, sorryHaving a stand-alone pip package for pomoxis that uses the environment paths for binaries might be an idea. Include a subroutine to test for presence of binaries and versions if required. I find this approach is much easier to deploy and doesn't rely on the user compiling stuff.
@thomcuddihy Thank you for this. We have made the setup.py
script more friendly to other packaging environments. You now must opt-in to copying binaries into the build; simply running setup.py
in the usual way will install only the python components of pomoxis
(and the shell scripts).
Based on your notes we have added a conda
target to the Makefile
which will construct a conda environment using conda packages as much as possible. Hopefully this will make installation easier for more users. We do not typically use conda ourselves, so this has had minimal testing.
I am interested in using the package in Conda rather than virtualenv and there does not appear to be a working Conda package available.
The HCC Conda package on the Anaconda Cloud is missing numerous dependencies, some of which I have listed here.
Are there any plans for an official Conda package or Docker image?