Skip to content

Commit

Permalink
Update README.md and Requirements.txt (#246)
Browse files Browse the repository at this point in the history
  • Loading branch information
mofosyne authored Aug 27, 2023
1 parent 8a0b625 commit e8dd1ba
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 26 deletions.
53 changes: 33 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,37 +28,50 @@ This extension should work with the following devices:

## Installation

### Ubuntu 20.10 or newer (features Inkscape 1.0+ natively)
### Ubuntu

WARNING: SNAP packages may cause issues.
WARNING: SNAP packages may cause issues. We use deb file shown later in this section.

Install Inkscape
* `sudo apt install inkscape`
#### Install Inkscape and other requirements

Install requirements
* `sudo apt install python3-usb`
<details>
<summary>Click to get bash commands</summary>

Install inkscape-silhouette
* https://github.com/fablabnbg/inkscape-silhouette/releases
Scroll down to Downloads and click on the *.deb file.
```bash
# Add inkscape dev team's PPA key to APT.
# This project require minimum of inkscape V1.0+
# But we want to always keep to latest inkscape version
sudo add-apt-repository ppa:inkscape.dev/stable

# Install Inkscape
sudo apt-get update
sudo apt install inkscape

### Ubuntu 18.04 or 20.04
# Install Inkscape with newer version directly from inkscape dev team
# even if newer than what Ubuntu's package management team is willing
# to certify at the moment
sudo apt-get --with-new-pkgs upgrade inkscape

WARNING: SNAP packages may cause issues.
# Install requirements for usb support
sudo apt-get install python3-usb

Add Inkscape 1.0+ repo
* `sudo add-apt-repository ppa:inkscape.dev/stable`
* `sudo apt-get update`
# Install requirements for Silhouette Multiple Actions
sudo apt install python3-wxgtk4.0

Install Inkscape
* `sudo apt install inkscape`
# Install all requirements from python package manager
sudo apt-get install python3-pip
python3 -m pip install -U pip
python3 -m pip install -r requirements.txt
```
</details>

Install requirements
* `sudo apt install python3-usb`
#### Install inkscape-silhouette

From here, you should have all the required python packages and inkscape version.
So now we shall install inkscape-silhouette, so scroll down the latest releases and head to the Assets section of releases and click on the *.deb file. You can then use `sudo apt-get install ./*.deb` where `*.deb` is the name of your newly downloaded file.

Install inkscape-silhouette
* https://github.com/fablabnbg/inkscape-silhouette/releases
Scroll down to Downloads and click on the *.deb file.


### Other Debian based Linux

Expand Down
13 changes: 7 additions & 6 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
numpy
pyusb
lxml
xmltodict
cssselect # required for inkscape >= 1.2
tinycss2 # required for inkscape >= 1.4
numpy >= 1.21.5
pyusb >= 1.2.1
lxml >= 4.8.0
xmltodict >= 0.13.0 # required for Silhouette Multiple Actions
cssselect >= 1.1.0 # required for inkscape >= 1.2
tinycss2 >= 1.1.1 # required for inkscape >= 1.4
matplotlib >= 3.7.2 # required displaying cut preview

0 comments on commit e8dd1ba

Please sign in to comment.