numpy/numpy-dtypes — pull request #3 by taldcroft (2012-07-04 20:27:40+00:00)
Title: Make npytypes install as a package

This PR makes npytypes into an installable package that includes quaternion and rational as subpackages.

Looking for feedback if the overall approach is on track.

Key changes:

* Make rational module into a package and include an `__init__.py` like that in `quaternion` which installs `rational` into `numpy` after checking that it doesn't already exist.
* Add a package-level `setup.py` and remove the original subpackage `setup.py` files.
* `quaternion` originally used `Configuration` from `numpy.distutils`. Migrate to vanilla `distutils` in a fashion similar to `rational`.
* Revert the change in Python includes that was introduced by @jayvius in d737d59 (e.g. `` => ``. I presume this is a windows thing, but with the `Python/` path prefix this fails on linux and mac. This isn't necessarily intended as a lasting solution but I needed to make it build on linux.
* Put `#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION` in c files. Not sure if this is exactly right but it was needed to succesfully build. Just defining `NPY_NO_DEPRECATED_API` failed with numpy-dev.