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

Create binaries for different distributions #8

Open
lewoudar opened this issue Jul 28, 2022 · 4 comments
Open

Create binaries for different distributions #8

lewoudar opened this issue Jul 28, 2022 · 4 comments
Labels
enhancement New feature or request need help Any help would be appreciated

Comments

@lewoudar
Copy link
Owner

My goal is to be able to distribute ws to different OS with a native binary like httpie does.
I'm aware of pyinstaller but man, this thing is not trivial 😆

I did some quick tests on my Ubuntu 20.04.4 LTS but I realized that my python installation using pyenv is missing some binaries crucial for pyinstaller to work.
I also tried on my Windows 10 laptop and the binary is not working and I have no clue of what is happening.

I don't think I have time / motivation for this feature, so any help would be greatly appreciated.

@lewoudar lewoudar added enhancement New feature or request need help Any help would be appreciated labels Jul 28, 2022
@Zedai00
Copy link

Zedai00 commented Jan 14, 2024

Do you want this for every distribution?

@lewoudar
Copy link
Owner Author

lewoudar commented Jan 14, 2024

Hi zedgamer9128,
Not really, the most used distributions will be good: debian related, windows, mac os and may be centos / fedora.
I already know how to create a binary. I need to

  • modify a little code to ensure absolute import paths and add an if __name__ == '__main__' in the main.py module
  • Modify the CI (probably add a new file) to run create binaries when it is a release. I don't know how to do it with other OSes that windows, ubuntu, mac os
  • Save the binaries in the release like I see in other projects. I don't know how to do it.

@Zedai00
Copy link

Zedai00 commented Jan 14, 2024

So what should I do?

@lewoudar
Copy link
Owner Author

I just did the first point. If you want to help, you can try to create a new CI file running on tags where the binaries will be created for different platforms. We should also include the assets in the release like it is done in this project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request need help Any help would be appreciated
Projects
None yet
Development

No branches or pull requests

2 participants