Skip to content

Commit

Permalink
Update python/Windows Makefile to differentiate versions
Browse files Browse the repository at this point in the history
  • Loading branch information
jazzklein committed Apr 6, 2014
1 parent 8bbceca commit 1c7159b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions project/swig/python/Makefile.vc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
!include <../../build/Makefile.vc>

PYTHON = python
PYTHON2 = python2

LIBRETS_LIB= ../../librets/src/$(BUILD_DIR)/$(LIBRETS_LIB_NAME) \
$(BOOST_LDFLAGS) $(WINLIBS)
Expand All @@ -25,13 +25,13 @@ $(LIBRETS_EXT): librets_wrap.cpp
echo ../librets_bridge.cpp >> $(SETUP_CONFIG)
set DISTUTILS_USE_SDK=1
set MSSdk=1
$(PYTHON) setup.py build --compiler=msvc
$(PYTHON2) setup.py build --compiler=msvc

install:
$(PYTHON) setup.py install
$(PYTHON2) setup.py install

dist: $(LIBRETS_EXT)
$(PYTHON) setup.py bdist_wininst
$(PYTHON2) setup.py bdist_wininst

clean:
@-rmdir /q /s build 2> NUL
Expand Down
8 changes: 4 additions & 4 deletions project/swig/python3/Makefile.vc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
!include <../../build/Makefile.vc>

PYTHON = python3
PYTHON3 = python3

LIBRETS_LIB= ../../librets/src/$(BUILD_DIR)/$(LIBRETS_LIB_NAME) \
$(BOOST_LDFLAGS) $(WINLIBS)
Expand All @@ -25,13 +25,13 @@ $(LIBRETS_EXT): librets_wrap.cpp
echo ../librets_bridge.cpp >> $(SETUP_CONFIG)
set DISTUTILS_USE_SDK=1
set MSSdk=1
$(PYTHON) setup.py build --compiler=msvc
$(PYTHON3) setup.py build --compiler=msvc

install:
$(PYTHON) setup.py install
$(PYTHON3) setup.py install

dist: $(LIBRETS_EXT)
$(PYTHON) setup.py bdist_wininst
$(PYTHON3) setup.py bdist_wininst

clean:
@-rmdir /q /s build 2> NUL
Expand Down

0 comments on commit 1c7159b

Please sign in to comment.