Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
depend on small extracted subset of numpy #62
I think that the best we could do would be to make numpy an optional dependency. Numpy lets us efficiently process large arrays of numeric data from Java (which just happens to be the use case for which it was designed), so one approach would be to have methods for populating or reading arrays using Python primitives (bool, int and float) and a second set that used numpy, conditionally included if numpy was available.
An alternative would be to drop support for array interoperability if numpy isn't available.
We use the numpy array type - it would be difficult to extract or patch around only that functionality from numpy.
Not work I can justify doing myself, but would consider a pull request.