Skip to content

Commit 9877259

Browse files
committed
Added parenthesis for Python 3.
This will still work on Python 2.
1 parent d553603 commit 9877259

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Makefile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,20 @@ ENV := env
66
DEPENDS := $(ENV)/.depends
77
EGG_INFO := $(subst -,_,$(PROJECT)).egg-info
88

9-
PLATFORM := $(shell python -c 'import sys; print sys.platform')
9+
PLATFORM := $(shell python -c 'import sys; print(sys.platform)')
1010

11-
ifneq ($(findstring win32, $(PLATFORM)), )
12-
SYS_PYTHON := C:\\Python33\\python.exe
13-
SYS_VIRTUALENV := C:\\Python33\\Scripts\\virtualenv.exe
14-
BIN := $(ENV)/Scripts
11+
ifneq ($(findstring win32, $(PLATFORM)),)
12+
SYS_PYTHON := C:\\Python33\\python.exe
13+
SYS_VIRTUALENV := C:\\Python33\\Scripts\\virtualenv.exe
14+
BIN := $(ENV)/Scripts
1515
EXE := .exe
1616
OPEN := cmd /c start
1717
# https://bugs.launchpad.net/virtualenv/+bug/449537
1818
export TCL_LIBRARY=C:\\Python33\\tcl\\tcl8.5
1919
else
20-
SYS_PYTHON := python3
21-
SYS_VIRTUALENV := virtualenv
22-
BIN := $(ENV)/bin
20+
SYS_PYTHON := python3
21+
SYS_VIRTUALENV := virtualenv
22+
BIN := $(ENV)/bin
2323
OPEN := open
2424
endif
2525

0 commit comments

Comments
 (0)