Skip to content
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

Source tarball for version 1.6 is broken #8

Closed
jlaine opened this issue Jan 17, 2019 · 3 comments
Closed

Source tarball for version 1.6 is broken #8

jlaine opened this issue Jan 17, 2019 · 3 comments

Comments

@jlaine
Copy link
Contributor

jlaine commented Jan 17, 2019

Hi, I don't know what happened during the release process but the source tarball on PyPI does not match what is on github, and fails to build:

Running crc32c-1.6/setup.py -q bdist_egg --dist-dir /var/folders/nz/vv4_9tw56nv9k3tkvyszvwg80000gn/T/easy_install-c6x4oqdy/crc32c-1.6/egg-dist-tmp-tbmrrl9s
_crc32c.c:69:15: error: use of undeclared identifier 'crc32c_crc32_sw'; did you mean 'crc32c_crc32'?
        {"crc32_sw", crc32c_crc32_sw, METH_VARARGS, "Calculate crc32c using a software implementation."},
                     ^~~~~~~~~~~~~~~
                     crc32c_crc32
_crc32c.c:40:11: note: 'crc32c_crc32' declared here
PyObject* crc32c_crc32(PyObject *self, PyObject *args) {

See:
https://travis-ci.org/jlaine/aiortc/jobs/480762373

This is the offending diff:

--- github/_crc32c.c     2019-01-17 07:25:02.610620597 +0100
+++ pypi/_crc32c.c   2019-01-17 08:08:56.000000000 +0100
@@ -65,7 +65,8 @@
 
 
 static PyMethodDef CRC32CMethods[] = {
-       {"crc32",   crc32c_crc32,   METH_VARARGS, "Calculate crc32c using Intel SSE4.2 instruction."},
+       {"crc32",    crc32c_crc32,    METH_VARARGS, "Calculate crc32c using Intel SSE4.2 instruction."},
+       {"crc32_sw", crc32c_crc32_sw, METH_VARARGS, "Calculate crc32c using a software implementation."},
        {NULL, NULL, 0, NULL}        /* Sentinel */
 };
 

Could you please bin this release and push out an 1.7 version? (replacing files is not an option, it's going to be on pypi mirrors by now)

rtobar added a commit that referenced this issue Jan 18, 2019
This version exists solely to overcome the wrong upload to PyPI that
occurred with 1.6, described in #8.

Signed-off-by: Rodrigo Tobar <[email protected]>
@rtobar
Copy link
Contributor

rtobar commented Jan 18, 2019

Yes, sorry about that, I prepared the sdist locally and didn't realise I included these uncommitted changes. I'm preparing a 1.7 release now.

@jlaine
Copy link
Contributor Author

jlaine commented Jan 20, 2019

We can close this now that 1.7 is out!

Note: allowing the code to compile on non-Intel platforms has gained us.. binary wheels for Raspberry Pi, yay!

https://www.piwheels.org/simple/crc32c/

@jlaine jlaine closed this as completed Jan 20, 2019
@rtobar
Copy link
Contributor

rtobar commented Jan 21, 2019

It's great to hear all is good now. I didn't know about piwheels, thanks for sharing that!

rtobar added a commit that referenced this issue Aug 25, 2024
We have historically made uninstallable source distributions (#8, #52,
maybe more). Adding a step that tries to install the newly-created
source distribution should reduce the chances of running into this
situation again.

Signed-off-by: Rodrigo Tobar <[email protected]>
rtobar added a commit that referenced this issue Aug 25, 2024
We have historically made uninstallable source distributions (#8, #52,
maybe more). Adding a step that tries to install the newly-created
source distribution should reduce the chances of running into this
situation again.

Signed-off-by: Rodrigo Tobar <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants