From 563564ea53937f1b404f7b23c970101bce5f7a5b Mon Sep 17 00:00:00 2001 From: Alex Xu Date: Sun, 28 Mar 2021 09:28:05 -0700 Subject: [PATCH] Create requirements.txt --- INSTALL.md | 36 ++++-------------------------------- requirements.txt | 4 ++++ 2 files changed, 8 insertions(+), 32 deletions(-) create mode 100644 requirements.txt diff --git a/INSTALL.md b/INSTALL.md index fb74c2d..3fe4eed 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -13,7 +13,8 @@ You can run `mangle` using 64 bit Python 2.7, but won't be able to build a binary with `py2exe`, and any performance difference is negligible. -Install virtualenv globally, if you don't already have it. +Install [virtualenv](https://virtualenv.pypa.io/en/stable/) +globally, if you don't already have it. ``` > pip install virtualenv @@ -24,31 +25,7 @@ and install all dependencies in a venv in the mangle directory, e.g. ``` ...\mangle> virtualenv venv > venv\Scripts\activate -(venv) > pip install Pillow -(venv) > pip install reportlab -``` - -It can be pretty difficult to install PyQT4 from source, -so prebuilt binaries are available at -http://www.lfd.uci.edu/~gohlke/pythonlibs/#pyqt4 - -You need -`PyQt4-4.11.4-cp27-cp27m-win32.whl` - -which you can install after placing the file -in the `mangle` folder via - -``` -(venv) > pip install PyQt4-4.11.4-cp27-cp27m-win32.whl -``` - -So your final `pip freeze` can look like: - -``` -(venv) > pip freeze -Pillow==6.2.2 -PyQt4 @ file:///.../mangle/PyQt4-4.11.4-cp27-cp27m-win32.whl -reportlab==3.5.59 +(venv) > pip install requirements.txt ``` You can run the GUI via @@ -63,12 +40,7 @@ so you can simply click on the `mangle.pyw` file to run it. ### Optional To actually build a stand-alone `.exe`, install - -``` -(venv) > pip install py2exe_py2 -``` - -and install + [Microsoft Visual C++ Compiler for Python 2.7](https://www.microsoft.com/en-us/download/details.aspx?id=44266) A standalone binary can be created in the `dist` folder via diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..0b36984 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,4 @@ +Pillow==6.2.2 +py2exe-py2==0.6.9 +PyQt4 @ https://download.lfd.uci.edu/pythonlibs/w4tscw6k/cp27/PyQt4-4.11.4-cp27-cp27m-win32.whl +reportlab==3.5.59