-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Building and distribute bwa together with bwapy #11
Comments
I agree in principle that this is a nice option I have. Currently this package does not exist on pypi (and I doubt we will have the time to put in the work to put it there - setuptools is a bit clunky when it comes to including arbitrary executables into the bin directory of a distribution). The repo contains the bwa source as a submodule, which can be used to build a bwa executable if desired. If someone wants to make the build more elaborate we would accept pull requests, as I say I don't think this is something we will add. |
Ok. The use case I am thinking about are virtualenvs and possibly user's site-packages. Would be good to know what are issues with putting executables in |
IIRC there is no option to |
MANIFEST.ini is the way to include non python files in your package at whatever location you want. But one would probably want to include the source and have setup.py compile it, no? Are there any issues with including the bwa source in this repo, rather than (or in addition to) as a submodule? |
The bwa source could certainly be included in the sdist and distributed on pypi; though as I indicated a while back this isn't something we currently have an interest in doing. Should anyone wish to pick up maintenance and development of this project I would encourage them to create a fork. |
the |
@Permafacture as per the OPs original specification, the issue at hand is installing the files to a location on the |
Oh, well, the goal was to package bwa with bwapy. OP mentioned putting a binary in $PATH as their idea of the solution. I don't think that's necessary though. When you compile your cffi objects through setup.py, you specify the paths to the resources you're using. I've only done this with source code (including the source of the project I'm linking to and then having setup.py/cffi build that project and my wrappers) but I'm pretty sure you can point to shared object files if that's preferred. SO answer to linking to non-installed .so files: https://stackoverflow.com/questions/47508459/loading-so-library-with-cffi |
I think it would be preferable to have an option to build and distribute
bwa
itself together withbwapy
. There are two advantages:bwapy
gets installed (+ for reproducible environments managed via conda, virualenv or similar).The text was updated successfully, but these errors were encountered: