Skip to content

fix pyinstaller-windows, using Msys2 #205

Merged
outscale-mgo merged 1 commit intomasterfrom
test-pyinstaller-windows
Sep 9, 2022
Merged

fix pyinstaller-windows, using Msys2 #205
outscale-mgo merged 1 commit intomasterfrom
test-pyinstaller-windows

Conversation

@outscale-mgo
Copy link
Contributor

@outscale-mgo outscale-mgo commented Jun 27, 2022

.github: add pyinstaller-windows

As the Makefile use a docker that use wine that use pyinstaller, is currently
broken, and is hard to debug, this new workflow, use windows directly
with Msys 2 (which use the glorious Pacman from I use Arch BTW).

I've also remove the old windwos build from the pull-request workflow,
and add a warning in the makefile to notice user that the rule is curently
broken.

See you wine build, someday somewhere!

fix #190

@outscale-mgo outscale-mgo force-pushed the test-pyinstaller-windows branch 16 times, most recently from 181314e to af5a3fb Compare June 30, 2022 10:23
@outscale-mgo outscale-mgo changed the title [WIP] test-pyinstaller-windows fix pyinstaller-windows, using Msys2 Jun 30, 2022
python --version
python -m pip install pyinstaller
python -m pip install .
pacman -Ql | grep openssl | grep dll

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

debug purpose ?

pkg/Makefile Outdated
@echo '==========================================='
@echo -e '============= \033[31m WARNING !!!!! \033[m ============'
@echo '==========================================='
@echo -e '\033[5m\033[31mThis rule is deprercated, and most likely broken \033[m'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo: deprecated

pkg/Makefile Outdated
@@ -41,6 +41,13 @@ osc-cli-x86_64.zip: osc-cli
zip -r osc-cli-x86_64.zip osc-cli

osc-cli:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rename to osc-cli-windows, no ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

well, I could, but as it was here before, I guess it should be done in another ticket PR.

Comment on lines 27 to 32
run: |
git submodule update --init
python --version
python -m pip install pyinstaller
python -m pip install .
pacman -Ql | grep openssl | grep dll

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we include this in the Makefile ? Even though we cannot run it on a Linux machine

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I could, but this is Msys2 specific, which even on windows isn't that use. so I'm not too sure about putting this part outside the yaml.
Especially as, one the debug remove, it's like a 3-line diff.

@outscale-mgo outscale-mgo force-pushed the test-pyinstaller-windows branch 2 times, most recently from 24530ed to adf0f62 Compare July 4, 2022 16:07
uses: "marvinpinto/action-automatic-releases@latest"
if: ${{ github.event_name == 'push' }}
with:
repo_token: "${{ secrets.TOKEN_MGO }}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TOKEN_MGO? We probably already have a gh token available from our bot

pkg/Makefile Outdated
@echo -e '\033[5m\033[31mThis rule is deprecated, and most likely broken \033[m'
@echo '==========================================='
@echo -e '============= \033[31m \WARNING !!!!! \033[m ============'
@echo '==========================================='
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not removing old rule?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we do that in a second time, as this is still a very diferent way to package the windows cli.

As the Makefile use a docker that use wine that use pyinstaller, is currently
broken, and is hard to debug, this new workflow, use windows directly
with Msys 2 (which use the glorious Pacman from I use Arch BTW).

I've also remove the old windwos build from everything.

See you wine build, someday somewhere!

fix #190
@outscale-mgo outscale-mgo force-pushed the test-pyinstaller-windows branch from 52a89de to 89ff71f Compare September 9, 2022 13:36
@outscale-mgo outscale-mgo merged commit 6803cb3 into master Sep 9, 2022
@jerome-jutteau jerome-jutteau deleted the test-pyinstaller-windows branch November 7, 2022 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants