diff options
Diffstat (limited to 'c_extension.c')
-rw-r--r-- | c_extension.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/c_extension.c b/c_extension.c index 00da503..6cfadba 100644 --- a/c_extension.c +++ b/c_extension.c @@ -42,8 +42,17 @@ POSSIBILITY OF SUCH DAMAGE. #include "helpers.h" -#include </usr/lib64/python3.6/site-packages/numpy/core/include/numpy/arrayobject.h> - +/* On Debian Linux and its derivatives (such as ubuntu), Python libraries + * installed through the package manager are kept in a non-standard directory + * 'dist-packages' instead of 'site-packages'. Why? Who knows. + * + * https://wiki.debian.org/Python#Deviations_from_upstream + */ +#ifdef DEBIAN_LINUX + #include </usr/lib/python3/dist-packages/numpy/core/include/numpy/arrayobject.h> +#else + #include </usr/lib64/python3.6/site-packages/numpy/core/include/numpy/arrayobject.h> +#endif #define DEFAULT_FRAME_RATE 10 ///< default frame rate |