-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1400 from DivingDuck/rm_cairosvg
* Remove cairosvg and submodule PrintrunGTK3 from Windows build process * Added pillow as a dependency for Windows systems * Convert buildinstructions.txt into buildinstructions.md * README: Add a hint for using pronsole.exe with windows terminal
- Loading branch information
Showing
10 changed files
with
159 additions
and
249 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +0,0 @@ | ||
[submodule "PrintrunGTK3"] | ||
path = PrintrunGTK3 | ||
url = https://github.com/DivingDuck/PrintrunGTK3 | ||
Submodule PrintrunGTK3
deleted from
e26b8d
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
# Build instructions | ||
In general please follow the build instructions as described in [README.md](README.md). Here you will find a brief overview about what is needed to build your own development environment without further explanations. | ||
## Setup on OS X | ||
### Prerequisites | ||
* install python 3.10 | ||
* install python extension compile environment, this is automatically done if you have xcode | ||
* install git | ||
### Clone the repository | ||
``` | ||
git clone http://github.com/kliment/Printrun.git | ||
cd Printrun | ||
git pull | ||
``` | ||
### Install and activate the virtual environment | ||
``` | ||
python3 -m venv v3 | ||
. ./v3/bin/activate | ||
``` | ||
### Install and update all required libraries | ||
``` | ||
pip install --upgrade pip | ||
pip install --upgrade setuptools | ||
pip install -r requirements.txt | ||
pip install cython | ||
python setup.py build_ext --inplace | ||
``` | ||
|
||
### For running | ||
`python pronterface.py` | ||
|
||
### For packaging | ||
``` | ||
pip install pyinstaller | ||
pyi-makespec --hidden-import="pkg_resources.py2_warn" -F --add-data images/\*:images --add-data \*.png:. --add-data \*.ico:. -w -i P-face.icns pronterface.py | ||
rm -rf dist | ||
sed -i '' '$ s/.$//' pronterface.spec | ||
cat >> pronterface.spec <<EOL | ||
, | ||
info_plist={ | ||
'NSPrincipalClass': 'NSApplication', | ||
'NSAppleScriptEnabled': False, | ||
'NSAppSleepDisabled': True, | ||
}, | ||
) | ||
EOL | ||
pyinstaller --clean pronterface.spec -y | ||
(optional) codesign -s identityname dist/pronterface.app --deep | ||
``` | ||
|
||
## Setup on Windows | ||
### Prerequisites | ||
* install python 3.10 | ||
* install python extension compile environment, see https://wiki.python.org/moin/WindowsCompilers | ||
* install git | ||
### Clone the repository | ||
``` | ||
git clone http://github.com/kliment/Printrun.git | ||
cd Printrun | ||
git pull | ||
``` | ||
### Install and activate the virtual environment | ||
``` | ||
\path\to\python3\python -m venv v3 | ||
v3\Scripts\activate | ||
### Install and update all required libraries | ||
pip install --upgrade pip | ||
pip install --upgrade setuptools | ||
pip install wheel | ||
pip install cython | ||
pip install -r requirements.txt | ||
pip install simplejson | ||
pip install pypiwin32 | ||
pip install polygon3 | ||
python setup.py build_ext --inplace | ||
``` | ||
|
||
Please see remark for polygon3[^1] | ||
|
||
### For running | ||
`python pronterface.py` | ||
|
||
### For packaging | ||
``` | ||
pip install pyinstaller | ||
pyi-makespec -F --add-data images/*;images --add-data *.png;. --add-data *.ico;. -w -i pronterface.ico pronterface.py | ||
pyinstaller --clean pronterface.spec -y | ||
``` | ||
|
||
>[!TIP] Please find further informations about building a development environment and packaging in script [release_windows.bat](release_windows.bat) where we implemented an automated build for windows. | ||
### Remark: | ||
>[^1]: The library **polygon3** is free for non commercial use. You can build Pronterface without this library - but then it will run slower. | ||
>Please find further details regarding license here: https://pypi.org/project/Polygon3/ |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.