From 8679c778b8463d55d4a7169a0392804189ec3d1b Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Wed, 6 May 2009 13:19:25 -0400 Subject: [PATCH] Add support for python setup.py develop. --- .gitignore | 2 ++ {src/python => meshpy}/__init__.py | 0 {src/python => meshpy}/common.py | 0 {src/python => meshpy}/geometry.py | 0 {src/python => meshpy}/ply.py | 0 {src/python => meshpy}/tet.py | 0 {src/python => meshpy}/triangle.py | 0 setup.py | 3 +-- 8 files changed, 3 insertions(+), 2 deletions(-) rename {src/python => meshpy}/__init__.py (100%) rename {src/python => meshpy}/common.py (100%) rename {src/python => meshpy}/geometry.py (100%) rename {src/python => meshpy}/ply.py (100%) rename {src/python => meshpy}/tet.py (100%) rename {src/python => meshpy}/triangle.py (100%) diff --git a/.gitignore b/.gitignore index 766a0f4..d5a19cb 100644 --- a/.gitignore +++ b/.gitignore @@ -20,3 +20,5 @@ doc/html *.egg-info *.pyc doc/.build +*.pyd +*.so diff --git a/src/python/__init__.py b/meshpy/__init__.py similarity index 100% rename from src/python/__init__.py rename to meshpy/__init__.py diff --git a/src/python/common.py b/meshpy/common.py similarity index 100% rename from src/python/common.py rename to meshpy/common.py diff --git a/src/python/geometry.py b/meshpy/geometry.py similarity index 100% rename from src/python/geometry.py rename to meshpy/geometry.py diff --git a/src/python/ply.py b/meshpy/ply.py similarity index 100% rename from src/python/ply.py rename to meshpy/ply.py diff --git a/src/python/tet.py b/meshpy/tet.py similarity index 100% rename from src/python/tet.py rename to meshpy/tet.py diff --git a/src/python/triangle.py b/meshpy/triangle.py similarity index 100% rename from src/python/triangle.py rename to meshpy/triangle.py diff --git a/setup.py b/setup.py index 6fcddce..292b9eb 100644 --- a/setup.py +++ b/setup.py @@ -40,7 +40,7 @@ def main(): LIBRARY_DIRS = conf["BOOST_LIB_DIR"] LIBRARIES = conf["BOOST_PYTHON_LIBNAME"] - execfile("src/python/__init__.py", conf) + execfile("meshpy/__init__.py", conf) setup(name="MeshPy", version=conf["version"], description="Triangular and Tetrahedral Mesh Generator", @@ -88,7 +88,6 @@ def main(): ], packages = [ "meshpy" ], - package_dir={"meshpy": "src/python"}, ext_modules = [ Extension( "meshpy._triangle", -- GitLab