v8py icon indicating copy to clipboard operation
v8py copied to clipboard

Python Wheels

Open armudgal opened this issue 7 years ago • 10 comments

Hi, I am working on wheels for this project and was writing a travis script for the same. I am currently targeting linux with PyPA's manylinux and is using their docker image. I am facing some issues in the travis build and would like to hear your advice. My fork: https://github.com/kira0204/v8py/tree/travis-wheels Also, I am working with @buffer on this.

armudgal avatar May 09 '18 11:05 armudgal

  v8/out/native/obj.target/src/libv8_libplatform.a: could not read symbols: Malformed archive

I think this is because the version of v8 that was built outside Docker and cached by Travis is not compatible with the manylinux image. Try clearing the cache?

tbodt avatar May 09 '18 17:05 tbodt

I think the button to do that is under the "More Options" menu.

tbodt avatar May 09 '18 17:05 tbodt

Sure thanks, will do so

armudgal avatar May 09 '18 19:05 armudgal

Also, the built of v8 is done with the command python2. The problem I am facing right now is that the CentOS5 docker image has Python2.4 as python2, and depot_tools need python2.7or higher to fetch --force v8. I am not sure what would be the best workaround here since we have different platforms over here.

One solution: Instead of running the fetch --force v8 command, what we can do is run the command python2.7 depot_tools/fetch.py --force v8. Adding python2.7 to the PATH in the docker image would be a simple step then.

armudgal avatar May 10 '18 06:05 armudgal

Update: I had to include python2.7 in the path so that python2 resolved to python2.7.4 in this case. The other issue being raised is here, the tar version in CentOS 5 is 1.15.1 and updating it is a very very weird option. Never thought building v8 only would be such a PITA in CentOS 5.

armudgal avatar May 10 '18 09:05 armudgal

Does CentOS 5 have a newer version of tar in the package repos? If not, you may end up having to compile it from source...

tbodt avatar May 10 '18 16:05 tbodt

Hi, sorry for the late reply, no CentOS5 doesn't have a new version of TAR and compiling it from source is not the option because CentOS5 doesn't support it. I put a pause on this because PyPA is updating the manylinux repo to run on a newer version on CentOS because of CentOS 5 reaching EOL a year back (https://github.com/pypa/manylinux/issues/179).

The best option right now would be to wait for them to do it (which might take 3-4 weeks more) and then work on the new manylinux2010.

armudgal avatar May 16 '18 08:05 armudgal

@armudgal just wondering who the manylinux thing go

desertkun avatar Oct 09 '19 01:10 desertkun

@desertkun The manylinux2010 has been released, more info can be found here.

I didn't get much time to follow up on that though

armudgal avatar Oct 10 '19 05:10 armudgal

See https://github.com/tbodt/v8py/pull/39

scottp-dpaw avatar Aug 10 '20 09:08 scottp-dpaw