Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
RDM Infrastructure
irods-clients
Commits
a77d7a21
Commit
a77d7a21
authored
Nov 10, 2021
by
Daalen, Tim van
Browse files
Removed confirm question during build
parent
72c8903d
Changes
1
Hide whitespace changes
Inline
Side-by-side
pyinstaller_script.py
View file @
a77d7a21
...
...
@@ -15,11 +15,11 @@ This makes it rougly 30 seconds slower than the current variant.
# Run command in shell, stdout is printed to the screen
def
run_cmd
(
cmd
):
ps
=
run
(
cmd
,
stderr
=
STDOUT
,
shell
=
True
,
text
=
True
)
ps
=
run
(
cmd
,
stderr
=
STDOUT
,
shell
=
True
,
universal_newlines
=
True
)
# Print anny errors
if
ps
.
stderr
!=
None
:
print
(
ps
.
stdout
)
raise
Exception
(
"
ui file conversio
n error"
)
raise
Exception
(
"
shell ru
n error"
)
# Convert the .ui files to .py files
...
...
@@ -92,11 +92,11 @@ if __name__ == "__main__":
# Step 2b, Create the venv if needed
venv_activate
=
venv
+
f
"
{
sep
}
Scripts
{
sep
}
activate.bat"
if
(
not
path
.
exists
(
venv_activate
))
or
(
not
path
.
isfile
(
venv_activate
)):
run_cmd
(
f
"python -m venv
{
venv
}
"
)
run_cmd
(
f
"python -m venv
{
venv
}
"
)
run_cmd
(
f
"
{
venv_activate
}
{
cmd_sep
}
pip install -r requirements.txt"
)
# Step 3, Activate venv and tun pyinstaller
run_cmd
(
f
"
{
venv_activate
}
{
cmd_sep
}
pyinstaller --clean
{
getcwd
()
}{
sep
}
irods-iBridgesGui.py"
)
run_cmd
(
f
"
{
venv_activate
}
{
cmd_sep
}
pyinstaller --clean
--noconfirm
{
getcwd
()
}{
sep
}
irods-iBridgesGui.py"
)
dist_folder
=
f
"
{
getcwd
()
}{
sep
}
dist"
...
...
Write
Preview
Supports
Markdown
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