[Debian-astro-commits] [gyoto] 172/221: Add python/setup_lorene.py.in

Thibaut Jean-Claude Paumard thibaut at moszumanska.debian.org
Fri May 22 20:52:44 UTC 2015


This is an automated email from the git hooks/post-receive script.

thibaut pushed a commit to branch master
in repository gyoto.

commit 97601b0c1e2be46355a41c1e49fad0a7ae4bd4d7
Author: Thibaut Paumard <paumard at users.sourceforge.net>
Date:   Tue Dec 30 09:18:22 2014 +0100

    Add python/setup_lorene.py.in
---
 python/setup_lorene.py.in | 38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

diff --git a/python/setup_lorene.py.in b/python/setup_lorene.py.in
new file mode 100644
index 0000000..245da19
--- /dev/null
+++ b/python/setup_lorene.py.in
@@ -0,0 +1,38 @@
+#!/usr/bin/env python
+
+# setup.py.in.distutils
+#
+# Copyright 2012, 2013 Brandon Invergo <brandon at invergo.net>
+# Copyright 2014 Thibaut Paumard
+#
+# Copying and distribution of this file, with or without modification,
+# are permitted in any medium without royalty provided the copyright
+# notice and this notice are preserved.  This file is offered as-is,
+# without any warranty.
+
+
+from distutils.core import setup, Extension
+import platform
+
+
+if platform.system() == 'Linux':
+    doc_dir = '@prefix@/share/doc/@PACKAGE_TARNAME@'
+else:
+    try:
+        from win32com.shell import shellcon, shell
+        homedir = shell.SHGetFolderPath(0, shellcon.CSIDL_APPDATA, 0, 0)
+        appdir = '@PACKAGE_TARNAME@'
+        doc_dir = os.path.join(homedir, appdir)
+    except:
+        pass
+
+gyoto_lorene_module = Extension('_gyoto_lorene',
+                         sources=['gyoto_lorene_wrap.cxx']
+                         )
+
+setup(name='@PACKAGE_NAME@'+'_lorene',
+      version='@PACKAGE_VERSION@',
+      author_email='@PACKAGE_BUGREPORT@',
+      py_modules=["gyoto_lorene"],
+      ext_modules=[gyoto_lorene_module]
+     )

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-astro/packages/gyoto.git



More information about the Debian-astro-commits mailing list