Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build a Python app with PyInstaller #2950

Closed
ghost opened this issue Mar 10, 2020 · 3 comments · Fixed by #2969
Closed

Build a Python app with PyInstaller #2950

ghost opened this issue Mar 10, 2020 · 3 comments · Fixed by #2969
Assignees
Labels

Comments

@ghost
Copy link

ghost commented Mar 10, 2020

Problem with: Build a Python app with PyInstaller, source file
I am using an old VOSTRO Dell I5 core laptop with recently upgraded win 10 pro. So even though I am running on windows, i am using a linux env. The first two stages of this tutorial work great! I learned a lot!!! That's the Build and the Test. However the third stage Deliver crashes and burns.. I am not sure what I am doing wrong? Thanks --A
log.txt

@MarkEWaite
Copy link
Contributor

Thanks for the report. The upstream Python component has changed. That change broke the tutorial. We hope to fix the tutorial soon to support using the newer upstream Python component.

@ghost
Copy link
Author

ghost commented Mar 10, 2020

Can I get the old version of the upstream Python component?

@MarkEWaite
Copy link
Contributor

As far as I can tell from looking at the Docker images of pyinstaller, older images are not available. I'm investigating the bug now, using the investigation results that Gan Ainm has reported on WEBSITE-726 and on JENKINS-49278.

I think it may be simpler to convert the deploy step to use a shell call to docker rather than the current docker.image call. However, still needs more exploration.

@MarkEWaite MarkEWaite self-assigned this Mar 13, 2020
@MarkEWaite MarkEWaite added the bug label Mar 13, 2020
MarkEWaite added a commit to MarkEWaite/jenkins.io that referenced this issue Mar 14, 2020
Requires the addition of a step that creates a new directory on each
new build so that pyinstaller has a clean directory to prepare the
distribution.  That step needs a copy of the compiled code, so a `stash`
step is added to the compile phase.

Includes an environment block to reduce the length of the lines in
the tutorial.  Explanation of the environment block is included.

Includes a description of BUILD_ID and a link to environment variables.

Includes a cleanup step in the post section to remove the artifacts
generated by the 'Deliver' stage.  Without that step, each job leaks
more files than necessary.

If there is concern at the addition of an unexplained cleanup step,
it could be removed without harming the tutorial.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant