Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
slapos
Commits
9377efa9
Commit
9377efa9
authored
9 years ago
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perl: make post_make_hook script more robust.
parent
529beb88
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
component/perl/buildout.cfg
component/perl/buildout.cfg
+1
-1
component/perl/perl-create-libs-symlink.py
component/perl/perl-create-libs-symlink.py
+4
-1
No files found.
component/perl/buildout.cfg
View file @
9377efa9
...
...
@@ -25,4 +25,4 @@ configure-command =
-Dusethreads
environment =
PATH=${patch:location}/bin:%(PATH)s
post-make-hook = ${:_profile_base_location_}/perl-create-libs-symlink.py#
539cb3cd0d1090f7f30a8e5a82b37854
:post_make_hook
post-make-hook = ${:_profile_base_location_}/perl-create-libs-symlink.py#
28d12de5c9c7985e65233d56817e3bec
:post_make_hook
This diff is collapsed.
Click to expand it.
component/perl/perl-create-libs-symlink.py
View file @
9377efa9
...
...
@@ -20,5 +20,8 @@ def post_make_hook(options, buildout):
# matches[0] is a prefix of "location"
# For the symlink, we want the relative path.
rel_link
=
os
.
path
.
relpath
(
os
.
path
.
dirname
(
matches
[
0
]),
location
)
os
.
symlink
(
rel_link
,
os
.
path
.
join
(
location
,
"libs-c"
))
simlink_location
=
os
.
path
.
join
(
location
,
"libs-c"
)
if
os
.
path
.
islink
(
simlink_location
):
os
.
unlink
(
simlink_location
)
os
.
symlink
(
rel_link
,
simlink_location
)
print
"Created symlink
\
"
libs-c
\
"
to"
,
rel_link
This diff is collapsed.
Click to expand it.
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