Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
irods-clients
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RDM Infrastructure
irods-clients
Commits
a77d7a21
Commit
a77d7a21
authored
3 years ago
by
Daalen, Tim van
Browse files
Options
Downloads
Patches
Plain Diff
Removed confirm question during build
parent
72c8903d
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pyinstaller_script.py
+4
-4
4 additions, 4 deletions
pyinstaller_script.py
with
4 additions
and
4 deletions
pyinstaller_script.py
+
4
−
4
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
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment