Skip to content
Snippets Groups Projects
Commit 45e5a23f authored by Derick Hess's avatar Derick Hess
Browse files

updated version removed install.py

parent 0f4adcba
No related branches found
No related tags found
1 merge request!4Coverplot py3
Pipeline #293 passed with stage
in 1 minute and 47 seconds
......@@ -12,3 +12,8 @@ History
* Updated Plot Save, now includes time annotations on saved eps plot file. - dthomas
2018.228 (2018-08-26)
------------------
* Updated Pto be python 2/3 compatible
......@@ -4,4 +4,4 @@
__author__ = """IRIS PASSCAL"""
__email__ = 'software-support@passcal.nmt.edu'
__version__ = '2018.206'
__version__ = '2018.228'
#!/usr/bin/env python
import shutil, os, stat, sys
from compileall import *
# Location of PASSCAL distribution
ROOTDIR = '/opt/passcal'
#
if len(sys.argv) > 1 :
ROOTDIR = sys.argv[1]
elif os.environ.has_key ('PASSCAL') :
ROOTDIR = os.environ['PASSCAL']
else :
sys.stderr.write ("PASSCAL environment variable not set!\n")
sys.exit ()
PROGDIR = os.getcwd ()
PROG = os.path.basename (PROGDIR)
LIBDIR = ROOTDIR + '/lib/python'
BINDIR = ROOTDIR + '/bin'
LIBPROG = LIBDIR + '/' + PROG
PROGS = ('coverplot',)
LIBS = ()
# Delete libs
for p in LIBS :
p = p + '.pyc'
try :
os.remove (p)
except OSError :
pass
# Compile
compile_dir (".")
# Make libs dir
command = 'mkdir -p ' + LIBDIR
os.system (command)
# Remove old libs
try :
shutil.rmtree (LIBPROG)
except OSError :
pass
# install libraries
shutil.copytree (PROGDIR, LIBPROG)
command = 'mkdir -p ' + BINDIR
os.system (command)
# install programs
for p in PROGS :
src = p
dst = BINDIR + '/' + p
try :
os.remove (dst)
except OSError :
pass
print src, dst
shutil.copy (src, dst)
os.chmod (dst, 0557)
[bumpversion]
current_version = 2018.206
current_version = 2018.228
commit = True
tag = True
......
......@@ -51,6 +51,6 @@ setup(
packages=find_packages(include=['coverplot']),
test_suite='tests',
url='https://git.passcal.nmt.edu/passoft/coverplot',
version='2018.206',
version='2018.228',
zip_safe=False,
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment