11# setup script for python-pninexus
22from __future__ import print_function
3- import codecs
43import sys
54import os
65import os .path
@@ -37,7 +36,7 @@ def read(fname):
3736 :param fname: readme file name
3837 :type fname: :obj:`str`
3938 """
40- with codecs . open (os .path .join ('.' , fname ), encoding = 'utf-8' ) as f :
39+ with open (os .path .join ('.' , fname ), encoding = 'utf-8' ) as f :
4140 long_description = f .read ()
4241 return long_description
4342
@@ -73,7 +72,11 @@ def read(fname):
7372 nexus_config .add_link_library (
7473 "boost_python{major}{minor}" .format (major = sys .version_info .major ,
7574 minor = sys .version_info .minor ))
76- nexus_config .add_include_directory ('/usr/include/hdf5/serial' )
75+ hdf5_include_path = os .environ .get ('HDF5_INC_LOCAL_PATH' )
76+ if not hdf5_include_path :
77+ nexus_config .add_include_directory ('/usr/include/hdf5/serial' )
78+ elif hdf5_include_path != "__SYS__" :
79+ nexus_config .add_include_directory (hdf5_include_path )
7780
7881 hdf5_hl_path = os .environ .get ('HDF5_HL_LOCAL_PATH' )
7982 if hdf5_hl_path :
@@ -291,7 +294,7 @@ def run(self):
291294 'Intended Audience :: Science/Research' ,
292295 'Topic :: Scientific/Engineering :: Physics' ,
293296 'Topic :: Software Development :: Libraries :: Python Modules' ,
294- 'License :: OSI Approved :: GNU General Public License v2 (GPLv2)' ,
297+ # 'License :: OSI Approved :: GNU General Public License v2 (GPLv2)',
295298 'Programming Language :: Python :: 2.7' ,
296299 'Programming Language :: Python :: 3.7' ,
297300 'Programming Language :: Python :: 3.8' ,
@@ -300,8 +303,8 @@ def run(self):
300303 'Programming Language :: Python :: 3.11' ,
301304 'Programming Language :: Python :: 3.12' ,
302305 ],
303- test_suite = "test" ,
304- test_loader = "unittest:TestLoader" ,
306+ # test_suite="test",
307+ # test_loader="unittest:TestLoader",
305308 cmdclass = {
306309 "install" : pni_install ,
307310 'build_sphinx' : BuildDoc ,
0 commit comments