Skip to content

Commit f4b9641

Browse files
committed
0.7.19 tweaks
1 parent f41237b commit f4b9641

File tree

2 files changed

+18
-23
lines changed

2 files changed

+18
-23
lines changed

setup.py

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -26,22 +26,11 @@
2626
import os
2727
local_path = os.path.dirname(os.path.abspath(os.sys.argv[0]))
2828

29-
USE_SETUPTOOLS = False
30-
31-
if USE_SETUPTOOLS:
32-
# setuptools
29+
try:
3330
from setuptools import setup
34-
else:
35-
# distutils
31+
except:
3632
from distutils.core import setup
3733

38-
# new more elegant hack implemented to get rid of evil hack and allow pip install
39-
"""
40-
# I suspect this is a distutils specific evil hack to get the data into the install directory
41-
from distutils.command.install import INSTALL_SCHEMES
42-
for scheme in INSTALL_SCHEMES.values():
43-
scheme['data'] = scheme['purelib']
44-
"""
4534
mydata_files = []
4635
# new hack should get rid of the need for this
4736
#mydata_files.append((os.path.join('cbmpy', 'models'),\
@@ -92,6 +81,16 @@
9281
'Topic :: Scientific/Engineering :: Chemistry'
9382
],
9483
description =\
84+
"""
85+
CBMPy (http://cbmpy.sourceforge.net) is a platform for constraint based modelling and analysis. CBMPy implements popular analyses such as FBA, FVA, element/charge balancing, network analysis and model editing as well as advanced methods developed specifically for the ecosystem modelling
86+
"""
87+
)
88+
try:
89+
import cbmpy
90+
except ImportError:
91+
pass
92+
93+
readme =\
9594
""" PySCeS-CBMPy
9695
============
9796
@@ -226,8 +225,4 @@
226225
python setup.py build sdist
227226
sudo python setup.py install
228227
229-
""")
230-
try:
231-
import cbmpy
232-
except ImportError:
233-
pass
228+
"""

src/__init__.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
2020
Author: Brett G. Olivier
2121
Contact email: bgoli@users.sourceforge.net
22-
Last edit: $Author: bgoli $ ($Id: __init__.py 631 2017-11-03 16:09:23Z bgoli $)
22+
Last edit: $Author: bgoli $ ($Id: __init__.py 633 2017-11-06 09:57:54Z bgoli $)
2323
2424
"""
2525
#
@@ -64,10 +64,10 @@
6464
print('\nWARNING: No SBML support, top-level SBML read/write functions disabled.\n')
6565

6666
# CBMPy GUI development has ended with WxGUI, download Metatoolkit instead
67-
try:
68-
from .CBWx import runModelEditor as loadCBGUI
69-
except ImportError as ex:
70-
print('GUI module not available')
67+
## try:
68+
## from .CBWx import runModelEditor as loadCBGUI
69+
## except ImportError as ex:
70+
## print('GUI module not available')
7171

7272
##import CBMultiEnv to be deprecated
7373
#try:

0 commit comments

Comments
 (0)