beeware / Python-Apple-support

A meta-package for building a version of Python that can be embedded into a macOS, iOS, tvOS or watchOS project.
MIT License
1.13k stars 165 forks source link

numpy-iOS, python 3.7 #54

Closed dalcacer closed 5 years ago

dalcacer commented 6 years ago

Hi,

I'm still investigating, but the target numpy-{iOS/macOS} fails on the 3.7 branch at the following point

[...]
error: Command "xcrun --sdk iphonesimulator clang -arch x86_64 --sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk -DNDEBUG -g -fwrapv -O3 -Wall -mios-version-min=7.0 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -Inumpy/core/include -Ibuild/src.iphonesimulator.x86_64-3.7/numpy/core/include/numpy -Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/Users/dalcacer/repositories/privat/github_python_apple_support/build/macOS/python/include/python3.7m -Ibuild/src.iphonesimulator.x86_64-3.7/numpy/core/src/private -Ibuild/src.iphonesimulator.x86_64-3.7/numpy/core/src/npymath -Ibuild/src.iphonesimulator.x86_64-3.7/numpy/core/src/private -Ibuild/src.iphonesimulator.x86_64-3.7/numpy/core/src/npymath -Ibuild/src.iphonesimulator.x86_64-3.7/numpy/core/src/private -Ibuild/src.iphonesimulator.x86_64-3.7/numpy/core/src/npymath -c numpy/random/mtrand/mtrand.c -o build/temp.iphonesimulator.x86_64-3.7/numpy/random/mtrand/mtrand.o -MMD -MF build/temp.iphonesimulator.x86_64-3.7/numpy/random/mtrand/mtrand.o.d" failed with exit status 1
make: *** [build/iOS/packages/numpy/build/temp.iphonesimulator.x86_64-3.7/libpymath.a] Error 1
Siege097 commented 5 years ago

Did this get resolved or is 3.6 the latest python framework that can run numpy

dalcacer commented 5 years ago

To be honest: I had no further time to investigate.

As far as I can, see there are no further commits which means, that this ticket is still relevant/up-to-date.

dalcacer commented 5 years ago

I'm currently working on a python 3.6 numpy-1.16.3 build. The 1.16.3 build procedure differs from the current solution, due to the fact that @freakboy3742 already provided an upstream patch for better cross compilation 🎉.

There are some further adjustments on the build procedure and within the source to enable bitcode embedment.

As soon as the 3.6/1.16.3 build is stable and tested, we're trying to approach python 3.7 again.

dalcacer commented 5 years ago

@Siege097 the named patch is now also available for python 3.7 https://github.com/OtoJig/Python-Apple-support/commits/3.7 . It is basically the same as in this, yet to discuss, pull request .