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

Pre-compiled shared libraries #111

Closed
smarlowucf opened this issue Jul 18, 2017 · 12 comments
Closed

Pre-compiled shared libraries #111

smarlowucf opened this issue Jul 18, 2017 · 12 comments

Comments

@smarlowucf
Copy link

smarlowucf commented Jul 18, 2017

I'm attempting to build a distribution package from the source on PyPi. However, the source contains the compiled shared library _istr.cpython-34m.so.

This causes problems if the arch and Python version don't match up with the library. Manually removing the file from the source solves the problem but it doesn't seem like this should exist in the source package?

I also noticed the source on PyPi does not match up with the source on Github. Github does not contain the _multidict.c file. Is this also a build artifact that was compiled from the pyx file?

The url I'm pulling source from is:
https://files.pythonhosted.org/packages/source/m/multidict/multidict-%{version}.tar.gz

@webknjaz
Copy link
Member

webknjaz commented Jul 18, 2017 via email

@smarlowucf
Copy link
Author

I think there should not be any *.so files embedded in source
distribution. It may be related to the recent CI/CD improvements. I'm going
to investigate this in a day or two.

Thanks for the quick response, I noticed between version 2.1.6 and 3.0.0 the so file started to appear. PyPi shows a version 2.1.7 but I couldn't fetch any sdist.

@asvetlov
Copy link
Member

Sorry, I'm traveling now.
Will fix the issue next week if @webknjaz don't do it earlier.

@dzen
Copy link

dzen commented Jul 20, 2017

Hi there,

I do not see any source package on pypi : https://pypi.python.org/pypi/multidict

@webknjaz
Copy link
Member

Okay, I see multidict-3.1.3.tar.gz for current stable version at https://pypi.python.org/simple/multidict/, but there's no .tar.gz for --pre release 3.1.4a. This needs more investigation.

@webknjaz
Copy link
Member

Wow, it turned out, that Travis user doesn't have access to dist dir created indice docker container: https://travis-ci.org/aio-libs/multidict/jobs/254112424#L1258

So permission errors happen when attempting to create .tar.gz and remove .whl's

@webknjaz
Copy link
Member

@asvetlov I think we could commit "empty" dist dir to work around this issue.

@asvetlov
Copy link
Member

Sounds good.
Please make sure that dist is not included into tarball and wheels

@dzen
Copy link

dzen commented Jul 25, 2017

Shouldn't we ignore "dist" in https://github.com/aio-libs/multidict/blob/master/MANIFEST.in ?

@webknjaz
Copy link
Member

@dzen yeah, looks so. We could also try using setuptools-git like aiohttp does.

@asvetlov
Copy link
Member

Looks like fixed in 3.2

@smarlowucf
Copy link
Author

Thanks! 👍

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

4 participants