Comments (11)
Creating multiple wheels for every new minor release is not feasible for this project. Since PyBind11 does not provide a stable ABI, I will sadly have to move away from that technology. I had no clue that would be the case until I was almost finished and about to package it up. If I cannot maintain it, I do not want to offer it and by rewriting the wrapper without the syntactic sugar of PyBind11, I should be able to create a package that I can maintain. That said, it may take some time.
If anyone else is interested in this python library being published for pip, please let me know. I am leaving this issue open.
If anyone is interested in helping rewrite the python wrapper to something that can support multiple minor versions of Python, we can create a branch or accept a related pull request.
from doxa.
It should not be very difficult to create a Github Actions script which auto builds multiple versions and publishes them to pypi automatically. I will try to find the time to set this up.
EDIT: I found some time #19
from doxa.
@heinrich-ulbricht yes it should. it's generating binary files for linux. So pip should install these without having to build anything.
from doxa.
Good to know @heinrich-ulbricht . Been swamped lately but hoping to have it setup Oct 2 or 3.
from doxa.
I would, but the problem is that I am currently using Pybind11 which only produces libraries compatible with a specific version of the Python runtime. So if I published a build for 3.7 it would not work with 3.6 or 3.8. I was not aware of that when I started using Pybind11. It is something I am looking into. Everyone recommends Pybind11 for C++ projects but they fail to mention their generated binary interfaces are incompatible from minor version to minor version. If there is anything I am missing or a way to overcome this, please let me know.
from doxa.
A few references:
https://docs.python.org/3/c-api/stable.html
pybind/pybind11#1755
from doxa.
It's not a deficit of pybind11. Every Python package which uses native code depends on the specific binary interface of the minor version. But that is not an issue. Multiple wheel files (eg. doxapy-1.0-cp37-cp37m-win_amd64.whl and doxapy-1.0-cp38-cp38-win_amd64.whl) can be pre-built and uploaded to pypi.
The "limited API" which would allow one build compatible with multiple minor versions is not commonly used in practice.
from doxa.
Will this make Doxa work on Linux with a single pip
command? Because I'm currently totally failing in building the project on/for Linux :(
from doxa.
@Dobatymo That sounds wonderful. I hope @brandonmpetty finds the time to test your PR. If there is anything to test from pypi I'm here :)
from doxa.
@Dobatymo, Thank you again for the PR. I made a few additional changes and it looks like everything is running great!
https://pypi.org/project/doxapy
@YutingZhang @heinrich-ulbricht, check it out and let me know if you run into any issues.
There is one issue with update_to_binary
where it is not passing the algorithm params all the way through. I'll get a fix for that out shortly. I also need to try to get Mac OSX working. I think by passing in cxx_std that may force it onto a newer Mac OS (10.14+) which I think is required for proper C++17 support. I got it working on a much earlier version, but it required a customized build setup.
from doxa.
https://pypi.org/project/doxapy/0.9.1
I added MacOS X support, although I can't test it due to me running an older OS. It requires 10.14+.
See the release notes for other details:
https://github.com/brandonmpetty/Doxa/releases
To comment on anything related to the release on PyPi: #22
from doxa.
Related Issues (17)
- version of c++ HOT 3
- std::get on Mac OS HOT 5
- Using on Windows HOT 5
- building with Pybind11 on Windows HOT 11
- specifying binarization method in python HOT 3
- [Feature request] AdOtsu, adaptive Otsu's method HOT 9
- Documentation - Parameter Defaults HOT 1
- skewed large images HOT 3
- GPU Support (CUDA) HOT 1
- Wan algorithm is slowly if window size more than 17? HOT 1
- pseudo F-measure, single metrics in Doxapy, and `eps` for numerical stability? HOT 9
- Malformed output with “zebra stripes” due to a bug in `PNM.hpp` HOT 3
- `#include "Morphology.hpp"` is missing from `Wan.hpp` HOT 1
- Thank you HOT 1
- Fast implementation of Sauvola-alike methods without integral images HOT 8
- Incorrect binarization algorythm in Demo Application HOT 1
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 doxa.