Comments (8)
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.
from bwapy.
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 $PREFIX/bin
from setuptools if I work on that. Could you please elaborate?
from bwapy.
IIRC there is no option to setuptools.setup
to place items into dist/bin (listing binaries under scripts is a no go). One workaround is to do what is done here: https://github.com/nanoporetech/pomoxis/blob/master/setup.py, that is place pre-compiled executable files into the distribution as data, and then cp them after the fact into the the same place as where setuptools knows to place scripts.
from bwapy.
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?
from bwapy.
MANIFEST.in
controls files that get placed into the sdist of a python package, it will not (I believe) say anything about installation of built packages (what setup.py install
achieves).
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.
from bwapy.
the include_package_data
kwarg in setup.py reads MANIFEST.ini and installs those files too.
from bwapy.
@Permafacture as per the OPs original specification, the issue at hand is installing the files to a location on the $PATH
, do you know of a cleaner way to do this than the method used in the linked setup.py
above using package data?
from bwapy.
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
from bwapy.
Related Issues (8)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bwapy.