Skip to content

Commit

Permalink
version 3.1.5.11
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuminjie committed Jan 11, 2020
1 parent 9a578fa commit 9f628ea
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 49 deletions.
19 changes: 19 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "clean",
"type": "shell",
"command": "rm",
"args": [
"-fr",
"build",
"dist",
"openseespy.egg-info"
],
"problemMatcher": []
}
]
}
27 changes: 27 additions & 0 deletions find_dep.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import subprocess
import shutil
import os
import os.path

linux = './openseespy/opensees/linux/'
so = '../openseespy/SRC/interpreter/opensees.so'

if os.path.exists(linux+'opensees.so'):
os.remove(linux+'opensees.so')
if os.path.exists(linux+'lib'):
shutil.rmtree(linux+'lib')

shutil.copy(so, linux)
os.mkdir(linux+'lib')

p = subprocess.run(
["ldd", so], capture_output=True)

for line in p.stdout.decode('utf-8').split('\n'):
i = line.find('/')
j = line.find(' ', i)
if i < 0 or j < 0 or i >= j:
continue

print('copying '+line[i:j]+' ....')
shutil.copy(line[i:j], linux+'lib/')
2 changes: 1 addition & 1 deletion openseespy/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version = "0.5.10"
version = "3.1.5.11"
48 changes: 0 additions & 48 deletions tests/test.ipynb

This file was deleted.

0 comments on commit 9f628ea

Please sign in to comment.