From 6d78f9378867ab43716d70e8e044ba12a14891c4 Mon Sep 17 00:00:00 2001 From: Dmitry Bogdanov Date: Thu, 28 Nov 2019 14:42:06 +0100 Subject: [PATCH] Keep _gaia2.so inside gaia2 dist-packages folder --- src/bindings/gaia.swig | 2 +- src/bindings/wscript | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bindings/gaia.swig b/src/bindings/gaia.swig index 46cfa97..f812ae8 100644 --- a/src/bindings/gaia.swig +++ b/src/bindings/gaia.swig @@ -1,4 +1,4 @@ -%module gaia2 +%module(moduleimport="import _gaia2") gaia2 %{ #include %} diff --git a/src/bindings/wscript b/src/bindings/wscript index f5cfd28..20ee044 100644 --- a/src/bindings/wscript +++ b/src/bindings/wscript @@ -54,7 +54,7 @@ def build(bld): swig_flags = '-c++ -python -w451', use = ['gaia2'] + bld.env['USELIB'], # + ['BINDINGS'], includes = bld.env['CPPPATH_BINDINGS'], - install_path = '${PYTHONDIR}' + install_path = '${PYTHONDIR}/gaia2' ) bld.install_as('${PYTHONDIR}/gaia2/__init__.py', 'gaia2.py')