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

Multiple .spec files #63

Open
justinmoon opened this issue Sep 7, 2019 · 3 comments
Open

Multiple .spec files #63

justinmoon opened this issue Sep 7, 2019 · 3 comments

Comments

@justinmoon
Copy link

justinmoon commented Sep 7, 2019

My project has multiple .spec files. Is there an easy way to specify which one you want docker-pyinstaller to use?

@cdrx
Copy link
Owner

cdrx commented Jan 14, 2020

You can specify the spec file to build by running it like:

pyinstaller --clean -y --dist ./dist/linux --workpath /tmp name-of-file.spec

@cdrx cdrx closed this as completed Jan 14, 2020
@cdrx cdrx reopened this Jan 14, 2020
@cdrx
Copy link
Owner

cdrx commented Jan 14, 2020

I would gladly merge a PR allowing the entry point to choose which spec file to build (rather than *.spec)

@mapto
Copy link

mapto commented Jul 22, 2021

Actually, the current logic of entrypoint-*.sh as it is, allows specifying a spec file, see e.g. line 43 in the linux version. To use it, one needs to run docker with e.g. (clearly .spec needs to be replaced with the file of your choice):

docker run -v "$(pwd):/src/" cdrx/pyinstaller-linux "pyinstaller --clean -y --dist ./dist/linux --workpath /tmp <selected>.spec && chown -R --reference=. ./dist/linux"

This does exactly the same as the default behaviour, except for trying to look for *.spec.

For windows I was also able to build the files for windows by replacing the three references to "linux" in the command with "windows".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants