Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Cover image for A Minimalist Python Version Manager
Harsh Singh
Harsh Singh

Posted on

     

A Minimalist Python Version Manager

Python Support in Shuru: Version 0.0.9

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.

What’s New?

With this latest release (v0.0.9), Shuru can download, build, and install Python from source, all by simply configuring yourshuru.toml. No need for extra tools likepyenv anymore. Just define the Python version you need, and Shuru takes care of the rest.

Here’s how it looks in yourshuru.toml:

[versions]python="3.10.2"[[task]]name="setup"command="pip install -r requirements.txt"[[task]]name="run"command="python app.py"default=true
Enter fullscreen modeExit fullscreen mode

Under the Hood

When you specify a Python version, Shuru will:

  1. Download the Source: It grabs the specified version from the official Python website.
  2. Compile It: This isn’t just a simple download and go. Shuru compiles Python from source, allowing for greater customization if you need it.
  3. Install: Finally, it installs Python in your designated environment.

If you want to see the build process in real-time, set theSHURU_BUILD_PYTHON_VERBOSE environment variable:

exportSHURU_BUILD_PYTHON_VERBOSE=1
Enter fullscreen modeExit fullscreen mode

With this variable enabled, you’ll get detailed output during the build, making it easier to troubleshoot if anything goes wrong.

What About Node.js?

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.

Final Thoughts

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 onGitHub and start integrating Python management into your workflow. Happy coding!

Top comments(0)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

Building RayQL | Open-source dev | Rustacean 🦀
  • Joined

More fromHarsh Singh

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp