Skip to content

Latest commit

 

History

History
162 lines (91 loc) · 1.93 KB

PYTHON_SETUP_LINUX.org

File metadata and controls

162 lines (91 loc) · 1.93 KB

Python Setup Linux

Repository Information

Author
Peter Polidoro
License
BSD

Setup Git

https://github.com/janelia-experimental-technology/git_setup

Install

Debian-based GNU/Linux Distributions

Python

The latest versions of most Debian-based GNU/Linux distributions come with Python 3.x out of the box.

Guix

Python

guix install python

Development

Virtualenv

Debian-based GNU/Linux Distributions

sudo apt install -y python3-venv twine

Create and Activate Virtual Environment

rm -rf venv
python3 -m venv venv
source venv/bin/activate

Manual Testing

python setup.py install

Upload to Pypi

python setup.py sdist bdist_wheel
twine upload dist/*

Cleanup

git clean -xdf

Manual Testing

python setup.py install

Upload to Pypi

python setup.py sdist bdist_wheel
twine upload dist/*

Cleanup

git clean -xdf

Guix

guix time-machine -C channels.scm -- shell -D -f guix.scm
python3 setup.py sdist bdist_wheel
twine upload dist/*
git clean -xdf

Docker

Build Docker Image

docker stop $(docker ps -aq)
docker system prune -f
docker build -t python_package_development:latest .

Run Docker Container

docker run -it --device=/dev/ttyACM0 python_package_development:latest

Install This Package

cd python_package
python setup.py install

Run ipython and Test

ipython

Commit, Tag, and Upload to Pypi

# git commit ...
# git tag ...
python3 setup.py sdist bdist_wheel
twine upload dist/*
git clean -xdf