Skip to content

Commit

Permalink
updating the installation of python
Browse files Browse the repository at this point in the history
  • Loading branch information
frozenwizard committed Jun 4, 2023
1 parent 8ae8f9a commit 0acbc96
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
11 changes: 5 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@

#Intellij
#PyCharm
.idea/
*.iml
micropython/
target/


#Source
micropython/
target/
src/settings.py
src/phew

#OS garbase
temp/
#OS garbage
.DS_STORE
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,22 @@
clean: ##Nukes the target and micropython dirs
rm -rf target/
rm -rf micropython/
-rm -rf src/phew
-rm -rf temp/

.PHONY: setup
setup: ## Downloads and setups required dependencies
mkdir micropython
wget -P micropython https://micropython.org/resources/firmware/rp2-pico-w-20230426-v1.20.0.uf2
mkdir temp
wget -P temp/phew https://github.com/pimoroni/phew/archive/refs/tags/v0.0.3.zip
unzip temp/phew/v0.0.3.zip -d temp/
mv temp/phew-0.0.3/phew/ src/
cp src/config.py.template src/settings.py
pyenv install $(cat .python-version)
pyenv local $(cat .python-version)
pip install -r requirements.txt
@eval "$$(pyenv init -)" && pyenv virtualenv $(cat .python-version) gunpla
@eval "$$(pyenv init -)" && pyenv activate gunpla && pip install --require-virtualenv -r requirements.txt

.PHONY: install-micropython-ubuntu
install-micropython-ubuntu: ## Installs micropython to pi board on ubuntu
Expand Down
2 changes: 1 addition & 1 deletion docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ If you have not done so yet git clone this repo to your desired directory. The
### Install tooling
Run the following make command to download micropython, install python, python requirements and generate the config file. This is a one time setup.
```shell
make setup
make setup && pyenv activate gunpla
```

### Install MicroPython to the Raspberry Pico board
Expand Down

0 comments on commit 0acbc96

Please sign in to comment.