Skip to content

Commit

Permalink
Merge pull request #270 from sys-bio/develop
Browse files Browse the repository at this point in the history
Merge into master for 1.5.0 RC2
  • Loading branch information
0u812 committed Jan 20, 2016
2 parents 0248105 + d171b2a commit f542692
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 19 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ E. T. Somogyi <sup>1</sup>, M. T. Karlsson <sup>2</sup>, M. Swat <sup>1</sup>, M

libRoadRunner is a high performance and portable simulation engine for systems and synthetic biology.

## Contributing

**IMPORTANT!** Contributors **must** follow the [contribution guidelines](https://github.com/sys-bio/roadrunner/wiki). Contibuters are responsible for complying with the guidelines, including (but not limited to) making commits to the correct branch. Maintainers are not responsible for changes made to the wrong branch. Contributors take full responsibility for ensuring that their changes get merged into the develop branch.

## libRoadRunner supports the following features:

* Time Dependent Simulation (with optional conservation law reduction) using CVODE
Expand Down
37 changes: 18 additions & 19 deletions wrappers/Python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ def _checkRequirements():

# get the os string
def _getOSString():


s = platform.system().lower()
unix = False

Expand All @@ -65,7 +65,7 @@ def _getOSString():
.format(s))

arch = platform.architecture()

if unix and arch[0].startswith('64'):
arch = 'x86_64'
elif unix and arch[0].startswith('32'):
Expand All @@ -74,7 +74,7 @@ def _getOSString():
arch = '32' #win 32

return s + "_" + arch

_version = _version + "-" + _getOSString()


Expand All @@ -86,7 +86,7 @@ def _copyDistFiles():

if platform.system().lower().startswith("win"):
print("copying windows dlls...")

shutil.copyfile("bin/iconv.dll", "site-packages/roadrunner/iconv.dll")
shutil.copyfile("bin/msvcp120.dll", "site-packages/roadrunner/msvcp120.dll")
shutil.copyfile("bin/msvcr120.dll", "site-packages/roadrunner/msvcr120.dll")
Expand All @@ -96,9 +96,9 @@ def _copyDistFiles():
import glob
for f in glob.glob("*.txt"):
shutil.copyfile(f, "site-packages/roadrunner/" + f)





# custom sdist command to copy different bits
Expand Down Expand Up @@ -128,7 +128,7 @@ def setup(*args):

_checkRequirements()

# may be running in a different dir, temp change dir into
# may be running in a different dir, temp change dir into
# dir of setup file
curdir = os.path.abspath(os.getcwd())

Expand All @@ -137,9 +137,11 @@ def setup(*args):


# copy stuff if we are building
if len(args) > 0 and args[0].lower().find('dist') >= 0:
print ("we're building...")
_copyDistFiles()
# if len(args) > 0 and args[0].lower().find('dist') >= 0:
# print ("we're building...")
# _copyDistFiles()
# always copy windows dlls
_copyDistFiles()

# check if we are running in Mac Spyder, and /Users/andy/local/dist/pylibroadrunner-1.1.1-macosx_x86_64/setup.py
# called with no args
Expand All @@ -164,11 +166,11 @@ def setup(*args):
},
package_data={
# add dll, won't hurt unix, not there anyway
"roadrunner" : ["_roadrunner." + _sharedLibExt(), "*.dll", "*.txt" ],
"roadrunner" : ["_roadrunner." + _sharedLibExt(), "*.dll", "*.txt" ],
"roadrunner.testing" : ["*.xml", "*.txt", "*.dat", "dsmts/*.xml", "dsmts/*.csv", "test_data/*"]
},
cmdclass={'sdist' : _RoadRunnerSDist},

# fake out the command line args
script_name = 'setup.py',
script_args = args
Expand All @@ -178,12 +180,9 @@ def setup(*args):
print("changeing back to " + curdir)
os.chdir(curdir)




if __name__ == "__main__":
args = sys.argv[1:]
setup(*args)



0 comments on commit f542692

Please sign in to comment.