mirror of
https://github.com/onionshare/onionshare.git
synced 2024-12-26 15:59:48 -05:00
Use a virtualenv, and put pip deps in requirements.txt
This commit is contained in:
parent
f922be8ce8
commit
b7e9bed65a
15
BUILD.md
15
BUILD.md
@ -42,6 +42,14 @@ Install some dependencies using Homebrew:
|
||||
brew install python3 pyqt5 qt5
|
||||
```
|
||||
|
||||
Set up a virtual env (`sudo pip3 install virtualenv` if you don't have it installed):
|
||||
|
||||
```sh
|
||||
$ virtualenv env
|
||||
$ . env/bin/activate
|
||||
(env) pip3 install -r install/requirements.txt
|
||||
```
|
||||
|
||||
Install some dependencies using pip3:
|
||||
|
||||
```sh
|
||||
@ -77,7 +85,12 @@ Now you should have `dist/OnionShare.pkg`.
|
||||
|
||||
Download the latest Python 3.6.x, 32-bit (x86) from https://www.python.org/downloads/. I downloaded `python-3.6.0.exe`. When installing it, make sure to check the "Add Python 3.6 to PATH" checkbox on the first page of the installer.
|
||||
|
||||
Open a command prompt and install dependencies with pip: `pip install flask stem PyQt5 pyinstaller`
|
||||
Open a command prompt and install dependencies with pip:
|
||||
|
||||
```cmd
|
||||
pip install -r install\requirements.txt
|
||||
pip install -r install\requirements-windows.txt
|
||||
```
|
||||
|
||||
Download and install Qt5 from https://www.qt.io/download-open-source/. I downloaded `qt-unified-windows-x86-2.0.4-online.exe`. There's no need to login to a Qt account during installation. Make sure you install the latest Qt 5.x. I installed Qt 5.7.
|
||||
|
||||
|
2
install/requirements-windows.txt
Normal file
2
install/requirements-windows.txt
Normal file
@ -0,0 +1,2 @@
|
||||
PyQt5==5.7.1
|
||||
sip==4.19
|
8
install/requirements.txt
Normal file
8
install/requirements.txt
Normal file
@ -0,0 +1,8 @@
|
||||
click==6.7
|
||||
Flask==0.12
|
||||
itsdangerous==0.24
|
||||
Jinja2==2.9.2
|
||||
MarkupSafe==0.23
|
||||
PyInstaller==3.2
|
||||
stem==1.5.4
|
||||
Werkzeug==0.11.15
|
Loading…
Reference in New Issue
Block a user