PyOxidizer VS dh-virtualenv

Compare PyOxidizer vs dh-virtualenv and see what are their differences.

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
PyOxidizer dh-virtualenv
28 4
5,195 1,601
- 0.6%
0.0 0.0
about 2 months ago 12 months ago
Rust Python
Mozilla Public License 2.0 GNU General Public License v3.0 or later
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

PyOxidizer

Posts with mentions or reviews of PyOxidizer. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-03-13.
  • Show HN: Pywebview 5
    5 projects | news.ycombinator.com | 13 Mar 2024
    Bundling Python isn't too bad if you find the right tools for it.

    I really like https://github.com/indygreg/python-build-standalone and https://github.com/indygreg/PyOxidizer

    A bundled, built standalone Python can be 16 to 32MB (including the full standard library, which you can strip down to just the bits you use to save size). Not tiny, but probably not worth switching programming languages over.

  • Why do you enjoy systems programming languages?
    2 projects | /r/rust | 25 May 2023
    But really, I would suggest thinking about what you want to build before "how" or "with which tool" - one of the signs of a person becoming a good engineer is having an array of tools at their disposal and being able to choose a correct tool for the correct task. Rust also excels in integrating with other languages - with JS via WebAssembly (a bit of self-promotion, for example), with Elixir via Rustler, with Python via PyO3 and PyOxidizer, etc. So you absolutely can start writing a frontend app with JS, or a distributed system with Elixir, or a data processing/ML app with Python and use Rust to speed up critical parts of those. Or, in reverse, you can start with Rust & add new capabilities to whatever you're building, that being a frontend, a resilient chat interface, or an ML model.
  • List of Python compilers
    2 projects | /r/Python | 9 May 2023
    Thank you, although this is not exactly on topic. I'd not heard of PyOxidizer, but it appears to have the same goal as PyInstaller, py2exe, and cx_Freeze -- as the PyOxidizer readme says, it produces
  • Buck2, a large scale build tool written in Rust by Meta, is now available
    11 projects | /r/rust | 6 Apr 2023
    Here is some example Github Action from PyOxidizer as a Kickstarter: https://github.com/indygreg/PyOxidizer/blob/main/.github/workflows/build-exe.yml
  • Mitogen speedup (the actual value)
    2 projects | /r/ansible | 5 Mar 2023
    A starting point to try out binary modules by the way would be https://github.com/indygreg/PyOxidizer - could already have benefits by rolling in all dependencies of modules (so no more pip/apt/dnf/... installs on target hosts). Setting this up should be relatively straightforward and could probably be automated enough to even manage to build binary modules for all modules in the community ansible distribution eventually.
  • Python Magic Methods You Haven’t Heard About
    1 project | /r/Python | 14 Dec 2022
  • What are different ways to make a Python exe besides py-to-exe?
    2 projects | /r/Python | 14 Sep 2022
    PyOxidizer might be another option.
  • Used "Py To EXE" and It Showed KeyLogger as One of Viruses
    2 projects | /r/Python | 13 Sep 2022
  • indygreg / PyOxidizer :
    1 project | /r/Python | 27 Aug 2022
  • A Completely Open-Source Implementation of Apple Code Signing and Notarization
    9 projects | news.ycombinator.com | 8 Aug 2022
    XAR signing is effectively just an RFC 5652 CMS signature plus some minimal data structure manipulation. Code at https://github.com/indygreg/PyOxidizer/blob/faa7dfcea5d66bf5....

    Mach-O and bundles, by contrast, require a myriad of additional data structures requiring thousands of lines of code to support. To my knowledge, nobody else has implemented signing of these far-more-complicated primitives. (Existing Mach-O signing solutions just do ad-hoc signing and/or don't handle Mach-O in the context of a bundle.)

dh-virtualenv

Posts with mentions or reviews of dh-virtualenv. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-05-20.
  • PyPi root metapackage?
    1 project | /r/learnpython | 28 Mar 2022
    This is how Azure package functions, iirc. I think I used this https://github.com/spotify/dh-virtualenv for similar purpose some time ago.
  • What to do about GPU packages on PyPI?
    7 projects | news.ycombinator.com | 20 May 2021
    I'm in a devops role where we actually reroll the Tensorflow whl in-house (to get a few tweaks like specific AVX flags turned on), but because the rest of our deployment is apt/debs, we then turn around and wrap that whl in a deb using Spotify's excellent dh-virtualenv:

    https://github.com/spotify/dh-virtualenv

    There's no expertise for Bazel in-house; when we run the build, it seems to fail all its cache hits and then spend 12-13h in total compiling, much of which appears to be recompiling a specific version of LLVM.

    Every dependency is either vendored or pinned, including some critical things that have no ABI guarantees like Eigen, which is literally pinned to some a random commit, so that causes chaos when other binaries try to link up with the underlying Tensorflow shared objects:

    https://github.com/tensorflow/tensorflow/blob/master/third_p...

    And when you go down a layer into CUDA, there are even more support matrixes listing exact known sets of versions of things that work together:

    https://docs.nvidia.com/deeplearning/tensorrt/support-matrix...

    Anyway, I'm mostly just venting here. But the whole thing is an absurd nightmare. I have no idea how a normal distro would even begin to approach the task of unvendoring this stuff and shipping a set of normal packages for it all.

  • Working with Rust in VSCode’s devcontainer: Seamlessly run your Rust programs under a development container in Visual Studio Code.
    1 project | /r/rust | 11 Apr 2021
    Rarely do I develop software at my host level, I'm almost always doing it inside of a container or a virtual machine (local or remote), and part of that is simple muscle memory to solve several problems that you've mentioned in your experience with Python, as well as other languages (bonus points for me that I was never plagued by a horrid npm bug). Those are problems that are easily solvable with Docker and a properly formatted requirements.txt (which should only be used in development — use pip/setup.py for proper deployment) and for the rare times when I do need to use Python at the host level of a Linux system, I use Spotify's dh-virtualenv.
  • Is there an excellent Python equivalent for glitch.com?
    1 project | /r/madeinpython | 6 Apr 2021
    Maybe I misunderstood the question, but this would be the point of CI/CD and containerization as far as industry standards are concerned. If you had to deploy at host level, then this would be the point of dh-virtualenv that’s tied in by your CI/CD system.

What are some alternatives?

When comparing PyOxidizer and dh-virtualenv you can also consider the following projects:

PyInstaller - Freeze (package) Python programs into stand-alone executables

Nuitka - Nuitka is a Python compiler written in Python. It's fully compatible with Python 2.6, 2.7, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9, 3.10, and 3.11. You feed it your Python app, it does a lot of clever things, and spits out an executable or extension module.

pyarmor - A tool used to obfuscate python scripts, bind obfuscated scripts to fixed machine or expire obfuscated scripts.

pynsist - Build Windows installers for Python applications

py2exe - modified py2exe to support unicode paths

py2app