Skip to content
This repository was archived by the owner on Jun 22, 2024. It is now read-only.

[pull] master from giampaolo:master #26

Merged
merged 2 commits into from
Nov 11, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
make.bat: use default 'python' exe; get rid of hard-coded python path
  • Loading branch information
giampaolo committed Nov 11, 2022
commit 8543b11cc8f9575c28dc748931e590219accf6f9
16 changes: 7 additions & 9 deletions make.bat
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,26 @@
rem ==========================================================================
rem Shortcuts for various tasks, emulating UNIX "make" on Windows.
rem It is primarily intended as a shortcut for compiling / installing
rem psutil ("make.bat build", "make.bat install") and running tests
rem ("make.bat test").
rem psutil and running tests. E.g.:
rem
rem make build
rem make install
rem make test
rem
rem This script is modeled after my Windows installation which uses:
rem - Visual studio 2008 for Python 2.7
rem - Visual studio 2010 for Python 3.4+
rem ...therefore it might not work on your Windows installation.
rem
rem By default C:\Python27\python.exe is used.
rem To compile for a specific Python version run:
rem set PYTHON=C:\Python34\python.exe & make.bat build
rem
rem To use a different test script:
rem set PYTHON=C:\Python34\python.exe & set TSCRIPT=foo.py & make.bat test
rem set TSCRIPT=foo.py & make.bat test
rem ==========================================================================

if "%PYTHON%" == "" (
if exist "C:\Python38-64\python.exe" (
set PYTHON=C:\Python38-64\python.exe
) else (
set PYTHON=C:\Python27\python.exe
)
set PYTHON=python
)

if "%TSCRIPT%" == "" (
Expand Down