Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.package
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
slapos.package
Commits
9a4fe11d
Commit
9a4fe11d
authored
Dec 13, 2012
by
Marco Mariani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
autoupdate through easy_install before running slapprepare
parent
733a7878
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
2 deletions
+25
-2
slapprepare/setup.py
slapprepare/setup.py
+3
-2
slapprepare/slapprepare/autoupdate.py
slapprepare/slapprepare/autoupdate.py
+22
-0
No files found.
slapprepare/setup.py
View file @
9a4fe11d
...
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
...
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
import
glob
import
glob
import
os
import
os
version
=
'1.0a
4
'
version
=
'1.0a
5
'
name
=
'slapprepare'
name
=
'slapprepare'
long_description
=
open
(
"README.txt"
).
read
()
+
"
\
n
"
+
\
long_description
=
open
(
"README.txt"
).
read
()
+
"
\
n
"
+
\
open
(
"CHANGES.txt"
).
read
()
+
"
\
n
"
open
(
"CHANGES.txt"
).
read
()
+
"
\
n
"
...
@@ -24,7 +24,8 @@ setup(name=name,
...
@@ -24,7 +24,8 @@ setup(name=name,
zip_safe
=
False
,
zip_safe
=
False
,
entry_points
=
{
entry_points
=
{
'console_scripts'
:
[
'console_scripts'
:
[
'slapprepare = slapprepare.slapprepare:main'
,
'slapprepare = slapprepare.autoupdate:main'
,
'slapprepare-raw = slapprepare.slapprepare:main'
,
'slapupdate = slapprepare.slapupdate:main'
,
'slapupdate = slapprepare.slapupdate:main'
,
]
]
},
},
...
...
slapprepare/slapprepare/autoupdate.py
0 → 100644
View file @
9a4fe11d
import
os
import
subprocess
import
sys
def
do_update
():
print
'Updating slapreport'
subprocess
.
call
([
'easy_install'
,
'-U'
,
'slapprepare'
])
def
main
():
if
'--no-update'
in
sys
.
argv
:
sys
.
argv
.
remove
(
'--no-update'
)
else
:
do_update
()
args
=
[
os
.
path
.
join
(
os
.
path
.
dirname
(
sys
.
argv
[
0
]),
'slapprepare-raw'
)
]
+
sys
.
argv
[
1
:]
subprocess
.
call
(
args
)
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