-
Notifications
You must be signed in to change notification settings - Fork 862
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
Please publish source distribution #43
Comments
Not publishing an sdist on PyPI could also prevent it from being included in various Linux distros. |
I understand that an sdist is needed to enable source builds. This project was originally created to provide a very easy way to install OpenCV as a pre-built package. All the build scripts are targeted directly for CI services (Travis, Appveyor). They are decoupled from It's certainly possible to publish an sdist in the future, but it requires major changes to the build logic and it's really hard to say how much work it would need to make sdist happen. You can install the current pre-built packages to any glibc based Linux distro with pip. Including this distribution in Linux distros is not a priority. |
I took a look at the setup, and I see it's not easy indeed. |
I looked into this. It would require to override
The idea is to save all data derived from custom envvars and Git metadata (including a snapshot of the submodules needed) and include it into the sdist tarball -- so that sdist will be built with |
|
Not sure if it would indeed help here or not (since this is a quite advanced You can take a look in case it applies to you:
In your case, you would use the "advanced" section of the versioning doc linked above, provide a function for However, after looking into So, wanted to chime in to say I solved the exact same problem: determine version from git tags, yet find a way to make it work without git repo as well. It's very doable, you just need to find version from packaging metadata when there is no .git folder basically... |
I think long term you'll be better off if you can manage to write |
Source distributions will be in PyPI in next release. From now on, local builds shoud be done with |
Do you have an ETA on the next release that will push source distributions to PyPI? |
Source distributions will be up in PyPI in the next 24 hours. |
I would love to try opencv-python, but running into issues pip-installing it (via pygradle, https://github.com/linkedin/pygradle)
Could you by any chance also publish an sdist with your pypi package?
Wheels is great, but having an sdist (as usual) would be awesome too for things that don't quite use wheels yet (and also if one wants to rebuild the complete package on target machine)
The text was updated successfully, but these errors were encountered: