Commit e58713a6 by Baruch Sterin

minor changes to pyabc install script

parent 6ce9ac9b
...@@ -25,10 +25,20 @@ def zip_library(f, extra_files = []): ...@@ -25,10 +25,20 @@ def zip_library(f, extra_files = []):
zf.close() zf.close()
def add_python_lib(tf, lib_dir, lib, mtime): def add_python_lib(tf, lib_dir, lib, mtime):
_, prefix = os.path.split(lib)
for root, _, files in os.walk(lib): for root, _, files in os.walk(lib):
arcroot = os.path.join( lib_dir, os.path.relpath(root, lib) ) relpath = os.path.relpath(root, lib)
if relpath=='.':
arcroot = lib_dir
else:
arcroot = os.path.join( lib_dir, os.path.relpath(root, lib) )
arcroot = os.path.join(arcroot, prefix)
add_dir(tf, arcroot, mtime) add_dir(tf, arcroot, mtime)
for f in files: for f in files:
...@@ -76,6 +86,8 @@ def package(pyabc_dir, extra_bin, extra_lib, abc_exe, abc_sh, pyabc, ofname, scr ...@@ -76,6 +86,8 @@ def package(pyabc_dir, extra_bin, extra_lib, abc_exe, abc_sh, pyabc, ofname, scr
if scripts_dir: if scripts_dir:
for fn in os.listdir(scripts_dir): for fn in os.listdir(scripts_dir):
if fn.startswith('.'):
continue
fullname = os.path.join(scripts_dir, fn) fullname = os.path.join(scripts_dir, fn)
if os.path.isfile(fullname): if os.path.isfile(fullname):
fnroot, fnext = os.path.splitext(fn) fnroot, fnext = os.path.splitext(fn)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment