Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
abc
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
abc
Commits
e58713a6
Commit
e58713a6
authored
Jun 09, 2014
by
Baruch Sterin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor changes to pyabc install script
parent
6ce9ac9b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
src/python/package.py
+14
-2
No files found.
src/python/package.py
View file @
e58713a6
...
...
@@ -25,10 +25,20 @@ def zip_library(f, extra_files = []):
zf
.
close
()
def
add_python_lib
(
tf
,
lib_dir
,
lib
,
mtime
):
_
,
prefix
=
os
.
path
.
split
(
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
)
for
f
in
files
:
...
...
@@ -76,6 +86,8 @@ def package(pyabc_dir, extra_bin, extra_lib, abc_exe, abc_sh, pyabc, ofname, scr
if
scripts_dir
:
for
fn
in
os
.
listdir
(
scripts_dir
):
if
fn
.
startswith
(
'.'
):
continue
fullname
=
os
.
path
.
join
(
scripts_dir
,
fn
)
if
os
.
path
.
isfile
(
fullname
):
fnroot
,
fnext
=
os
.
path
.
splitext
(
fn
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment