-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathreinstall.bat
36 lines (34 loc) · 1.02 KB
/
reinstall.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
REM
REM This file is aimed for reCompile and reInstall PyGeoC for debugging on Windows platform.
REM
REM PyGeoC is distributed for Research and/or Education only,
REM any commercial purpose will be FORBIDDEN.
REM PyGeoC is an open-source project,
REM but WITHOUT ANY WARRANTY; WITHOUT even the implied warranty of
REM MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
REM
REM See the GNU General Public License for more details.
REM
REM This script accept one parameter, i.e., the path of python.exe
if NOT "%1" =="" (
set pypath=%1/python.exe
set pippath=%1/Scripts/pip.exe
) else (
for %%i in (python.exe) do @set pypath=%%~$PATH:i
for %%i in (pip.exe) do @set pippath=%%~$PATH:i
)
echo %pypath%
pushd %~dp0
cd %~dp0
rd /s/q dist
rd /s/q build
REM Compile and install PyGeoC through pip
%pippath% install tox
%pippath% install wheel
%pypath% setup.py bdist_wheel
cd dist
for /f "delims=" %%i in ('dir /s/b "*.whl"') do (
echo installing %%~ni ...
%pippath% install %%i --upgrade
)
cd ..