Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nurlan
eepm
Commits
43a93029
Commit
43a93029
authored
Apr 27, 2022
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
repack.d/generic.sh: install rpm-build-python3 for build packages with python code
parent
c9ad060c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
generic.sh
repack.d/generic.sh
+15
-0
No files found.
repack.d/generic.sh
View file @
43a93029
...
...
@@ -3,6 +3,8 @@
BUILDROOT
=
"
$1
"
SPEC
=
"
$2
"
flag_python3
=
''
for
i
in
lib/python3 lib/python2.7
;
do
t
=
$i
if
[
-d
$BUILDROOT
/usr/
$i
/dist-packages
]
;
then
...
...
@@ -10,3 +12,16 @@ for i in lib/python3 lib/python2.7 ; do
subst
"s|/usr/
$i
/dist-packages|/usr/
$t
/site-packages|"
$SPEC
fi
done
for
i
in
$BUILDROOT
/usr/bin/
*
;
do
[
-f
"
$i
"
]
||
continue
grep
-q
'^#!/usr/bin/python'
$i
&&
flag_python3
=
1
subst
's|^#!/usr/bin/python$|#!/usr/bin/python3|'
$i
done
# check for .py scripts
find
$BUILDROOT
-name
"*.py"
|
grep
-q
"
\.
py$"
&&
flag_python3
=
1
if
[
-n
"
$flag_python3
"
]
;
then
epm
install
--skip-installed
rpm-build-python3
fi
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