From 8a06d5bd54db8e6b60c3e8b3203745916b455cac Mon Sep 17 00:00:00 2001 From: Neel Patel Date: Wed, 3 Feb 2016 09:58:58 +0000 Subject: [PATCH] Remove a duplicate code line and add Windows environment setup info. --- README | 12 ++++++++++-- runtime/pgAdmin4.pro | 1 - 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/README b/README index 7b9fa2f24..a8126b671 100644 --- a/README +++ b/README @@ -40,8 +40,16 @@ $ make On Linux, an executable called 'pgAdmin4' will be built, and on Mac OS X, an app bundle called pgAdmin4.app will be created. -At the time of writing, no attempt has been made to build the runtime on a -Windows system, though in theory it should work. +To build the runtime on a Windows system, export PYTHON_HOME and PYTHON_VERSION +variables in the System environment. Specify the PYTHON_VERSION with the major +and minor number. Do not specify micro level version. +For example, given a Python version of A.B.C; A - Major number, B - Minor number, +C - Micro level (Bug fix releases). + +If Python version is 2.7.2 than specify PYTHON_VERSION=27 + + e.g. PYTHON_HOME=C:\Python27\ + PYTHON_VERSION=27 Support ------- diff --git a/runtime/pgAdmin4.pro b/runtime/pgAdmin4.pro index 26f4cd618..3da541447 100644 --- a/runtime/pgAdmin4.pro +++ b/runtime/pgAdmin4.pro @@ -24,7 +24,6 @@ win32 { else { INCLUDEPATH = $$PY_HOME\include LIBS += -L"$$PY_HOME\libs" -lpython$$PY_VERSION - PY2_VERSION = $$find(PY_VERSION, "^2") # Set the PYTHON2 macro if appropriate PY2_VERSION = $$find(PY_VERSION, "^2")