Skip to content

trsvchn/serpentarium

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

[WIP] Serpentarium

Yet Another Python Versions/Environments Management "Tool".


Concepts

The idea is to use GNU Make and tools provided by Python standard library, such as pip, venv, for managing packages, orchestrating Python virtual environments, and installing (compiling) Python interpreters.

-- TODO

Usage

Important

The API and command list are provisional and subject to change.

Python project dir has the following structure:

.
├── Makefile
├── pysrc             # User code.
│   ├── __init__.py
│   └── lib.py
├── requirements.txt  # Optional.
└── ...
    └── ...

After invoking make python two more directories are created .Python and .venv:

.
├── Makefile
├── pysrc             # User code.
│   ├── __init__.py
│   └── lib.py
├── requirements.txt  # Optional.
├── .Python           # Python source code.
│   └── ...
└── .venv             # Python "build" dir.
    ├── bin
    ├── include
    ├── lib
    └── share

Install python and pip to default location .venv.

make python

Helper command for "health checking".

make ping

Install packages from the requirements.txt.

make pip_install

Clean virtual env by removing .venv dir.

make clean_venv

Remove installed and previously cloned Python source.

make clean

Contribution

The project is still in the WIP stage, so the Discussions are the right place to start.