Home > Article > Backend Development > A Minimalist Python Version Manager
Shuru just got an upgrade—Python version management is now live! If you’ve been using Shuru for your Node.js tasks, you'll be glad to know you can now manage your Python versions with the same ease.
With this latest release (v0.0.9), Shuru can download, build, and install Python from source, all by simply configuring your shuru.toml. No need for extra tools like pyenv anymore. Just define the Python version you need, and Shuru takes care of the rest.
Here’s how it looks in your shuru.toml:
[versions] python = "3.10.2" [[task]] name = "setup" command = "pip install -r requirements.txt" [[task]] name = "run" command = "python app.py" default = true
When you specify a Python version, Shuru will:
If you want to see the build process in real-time, set the SHURU_BUILD_PYTHON_VERBOSE environment variable:
export SHURU_BUILD_PYTHON_VERBOSE=1
With this variable enabled, you’ll get detailed output during the build, making it easier to troubleshoot if anything goes wrong.
Python isn’t the only language Shuru supports. It still manages your Node.js versions in the same way, so you can seamlessly switch between environments for different projects. Shuru makes it easy to configure both in a single file, ensuring you’re always running the correct versions for your applications.
This addition makes Shuru a more versatile tool for developers who work in both JavaScript and Python. Managing your development environment should be straightforward, and Shuru aims to simplify that process.
Check out the latest version on GitHub and start integrating Python management into your workflow. Happy coding!
The above is the detailed content of A Minimalist Python Version Manager. For more information, please follow other related articles on the PHP Chinese website!