Open jayvdb opened 5 years ago
The purpose of this python module (python-chardet) is to improve performance by modifying only the module without changing the code.
This means that anyone who wants to use this module wants to improve performance without changing the code.
Therefore, this module crashes when it is installed at the same time with PyPI's chardet. Moreover, PyPI's chardet is so famous.
For this reason, I can not register with PyPI.
You can register it under a different name.
Distros often have conflicting packages. Rpm has a tag in the .spec to indicate conflicts.
Distros can be packaged without registering at PyPI. I think this is an other issue.
The reason for not registering at PyPI are as follows:
https://en.opensuse.org/openSUSE:Packaging_Python see Naming policy
If you only upload a sdist, and not a wheel, the setup.py is always executed. setup.py can refuse to install if the system already has a chardet
module.
I have it mostly packaged at https://build.opensuse.org/package/show/home:jayvdb:py-new/python-chardet-c , but I can not submit it as an alternative to the original chardet until it has registered a name. I also fixed up the lib https://build.opensuse.org/request/show/720085
Well. It seems to be talking differently.
What I worry about is that when I register this extension with PyPI, it crashes because of the same API, namesapce as the existing chardet.
Distros is not my worry yet.
What about renaming the dso to _chardet_c
and the python code to namespace chardet_c
?
Then it can co-exist with all of the similar libraries https://build.opensuse.org/package/show/home:jayvdb:py-new/python-cchardet https://build.opensuse.org/package/show/home:jayvdb:py-new/python-pychardet
I couldnt find this published on PyPI.
That is a prerequisite for packaging in most distros, as their package naming convention usually names the package after the PyPI name.
openSUSE has libchardet packages, so publishing this Python package should be really easy.