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
BUG: Failed to build numpy on Android #21026
Labels
Comments
GalaxySnail
added a commit
to GalaxySnail/numpy
that referenced
this issue
Feb 10, 2022
Use `concurrent.futures.ThreadPoolExecutor` in distutils instead of `multiprocessing.pool.ThreadPool`. Fix numpy#21026
GalaxySnail
added a commit
to GalaxySnail/numpy
that referenced
this issue
Feb 10, 2022
Use `concurrent.futures.ThreadPoolExecutor` in distutils instead of `multiprocessing.pool.ThreadPool`. Fix numpy#21026
charris
pushed a commit
to charris/numpy
that referenced
this issue
Mar 2, 2022
Use `concurrent.futures.ThreadPoolExecutor` in distutils instead of `multiprocessing.pool.ThreadPool`. Fix numpy#21026
charris
pushed a commit
to charris/numpy
that referenced
this issue
Mar 2, 2022
Use `concurrent.futures.ThreadPoolExecutor` in distutils instead of `multiprocessing.pool.ThreadPool`. Fix numpy#21026
melissawm
pushed a commit
to melissawm/numpy
that referenced
this issue
Apr 12, 2022
Use `concurrent.futures.ThreadPoolExecutor` in distutils instead of `multiprocessing.pool.ThreadPool`. Fix numpy#21026
seberg
pushed a commit
to seberg/numpy
that referenced
this issue
Apr 24, 2022
Use `concurrent.futures.ThreadPoolExecutor` in distutils instead of `multiprocessing.pool.ThreadPool`. Fix numpy#21026
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the issue:
Because Android doesn't support
sem_open
, python on Android doesn't supportmultiprocessing.Lock
. Therefore,multiprocessing.Queue
,multiprocessing.pool.Pool
,concurrent.futures.ProcessPoolExecutor
, and everything based onmultiprocessing.Lock
are unavailable on Android.In
numpy.distutils.ccompiler
it usesmultiprocessing.pool.ThreadPool
to build parallel. But theThreadPool
inherits frommultiprocessing.pool.Pool
, it requiresmultiprocessing.SimpleQueue
in its__init__
method, which is not necessary. Also,multiprocessing.pool.ThreadPool
is not recommanded in the document. It will be fine to useconcurrent.futures.ThreadPoolExecutor
instead ofmultiprocessing.pool.ThreadPool
.Reproduce the code example:
Error message:
NumPy/Python version information:
Packaging script: https://github.com/termux/termux-packages/blob/master/packages/python/build.sh
The text was updated successfully, but these errors were encountered: