[Liblas-commits] hg: add stuff to support building windows installers for PyPI on...

liblas-commits at liblas.org liblas-commits at liblas.org
Thu Feb 3 09:57:06 EST 2011


details:   http://hg.liblas.orghg/rev/98e5baa967f5
changeset: 2848:98e5baa967f5
user:      Howard Butler <hobu.inc at gmail.com>
date:      Thu Feb 03 08:56:29 2011 -0600
description:
add stuff to support building windows installers for PyPI on hobu's FIRE-WINDOWS XP VM

diffstat:

 python/setup.py |  14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)

diffs (37 lines):

diff -r 59ff7efe5696 -r 98e5baa967f5 python/setup.py
--- a/python/setup.py	Wed Feb 02 12:33:22 2011 -0600
+++ b/python/setup.py	Thu Feb 03 08:56:29 2011 -0600
@@ -20,7 +20,14 @@
 
 version = '1.6.0'
 
-scripts =['scripts/oci2las.py']
+import socket
+
+# if we're building on Howard's XP VM, we'll include DLLs from his setup
+if socket.gethostname() == 'fire-windows':
+    data_files=[('DLLs',[r'D:\liblas\bin\RelWithDebInfo\liblas_c.dll',
+                         r'D:\liblas\bin\RelWithDebInfo\liblas.dll',]),]
+else:
+    data_files = None
         
 setup(name          = 'libLAS',
       version       = version,
@@ -36,6 +43,8 @@
       packages      = ['liblas'],
       install_requires = install_requires,
       test_suite = 'tests.test_suite',
+      data_files = data_files,
+      zip_safe = False,
       classifiers   = [
         'Development Status :: 5 - Production/Stable',
         'Intended Audience :: Developers',
@@ -44,7 +53,6 @@
         'Operating System :: OS Independent',
         'Programming Language :: Python',
         'Topic :: Scientific/Engineering :: GIS',
-        ],
-      scripts = scripts
+        ]
 )
 


More information about the Liblas-commits mailing list