Skip to content

Poetry what? Conda why? Python development env and docker build step.

Notifications You must be signed in to change notification settings

bigFin/nix-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Nix-Python

Because Nix is all you need.

Overview

Nix-Python is a setup that allows you to manage Python environments and dependencies using Nix. It ensures that you have a consistent development environment with a specific Python version. It handles both FHS (Filesystem Hierarchy Standard) and non-FHS compliant systems, providing flexibility across different environments.

Usage

Development Shell

Run the following command to launch a shell with a pinned Python version (currently set to 3.1, modify if needed):

nix develop
  • If a virtual environment does not exist, it will be created.
  • Dependencies specified in requirements.txt or pyproject.toml will be installed using the local UV cache if it exists.

Build Docker Image

Run the following command to create a Docker image:

nix build

About

Poetry what? Conda why? Python development env and docker build step.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages