-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b18460a
commit d92f503
Showing
9 changed files
with
186 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 28 additions & 4 deletions
32
connector/nypd/python/sample-solution/nypd-connector/setup.bat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,34 @@ | ||
@echo off | ||
@REM i2, i2 Group, the i2 Group logo, and i2group.com are trademarks of N.Harris Computer Corporation. | ||
@REM © N.Harris Computer Corporation (2022) | ||
setlocal | ||
|
||
IF NOT DEFINED SHELL_PATH ( | ||
SET SHELL_PATH=%PROGRAMFILES%\Git\bin\sh.exe | ||
echo Checking if Python is installed... | ||
python -V | ||
if %errorlevel% neq 0 exit /b %errorlevel% | ||
|
||
for /f "tokens=2" %%a in ('python -V') do set version=%%a | ||
|
||
set VERSION=%version% | ||
echo Detected Python v%VERSION%. | ||
|
||
set NUMBER=%VERSION%/Python | ||
|
||
echo Installing pipenv... | ||
pip install pipenv | ||
|
||
echo Checking pipenv version... | ||
pipenv --version | ||
if %errorlevel% neq 0 ( | ||
echo: | ||
echo Update the PATH variable in your environment to include the locations of both the Python application and its scripts directory. | ||
exit /b %errorlevel% | ||
) | ||
|
||
"%SHELL_PATH%" "%~dp0setup.sh" %* | ||
echo Running Python... | ||
pipenv --python %NUMBER% | ||
|
||
echo Creating Piplock.file... | ||
pipenv lock | ||
|
||
echo Syncing dependencies... | ||
pipenv sync |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,34 @@ | ||
@echo off | ||
@REM i2, i2 Group, the i2 Group logo, and i2group.com are trademarks of N.Harris Computer Corporation. | ||
@REM © N.Harris Computer Corporation (2022) | ||
setlocal | ||
|
||
IF NOT DEFINED SHELL_PATH ( | ||
SET SHELL_PATH=%PROGRAMFILES%\Git\bin\sh.exe | ||
echo Checking if Python is installed... | ||
python -V | ||
if %errorlevel% neq 0 exit /b %errorlevel% | ||
|
||
for /f "tokens=2" %%a in ('python -V') do set version=%%a | ||
|
||
set VERSION=%version% | ||
echo Detected Python v%VERSION%. | ||
|
||
set NUMBER=%VERSION%/Python | ||
|
||
echo Installing pipenv... | ||
pip install pipenv | ||
|
||
echo Checking pipenv version... | ||
pipenv --version | ||
if %errorlevel% neq 0 ( | ||
echo: | ||
echo Update the PATH variable in your environment to include the locations of both the Python application and its scripts directory. | ||
exit /b %errorlevel% | ||
) | ||
|
||
"%SHELL_PATH%" "%~dp0setup.sh" %* | ||
echo Running Python... | ||
pipenv --python %NUMBER% | ||
|
||
echo Creating Piplock.file... | ||
pipenv lock | ||
|
||
echo Syncing dependencies... | ||
pipenv sync |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,34 @@ | ||
@echo off | ||
@REM i2, i2 Group, the i2 Group logo, and i2group.com are trademarks of N.Harris Computer Corporation. | ||
@REM © N.Harris Computer Corporation (2022) | ||
setlocal | ||
|
||
IF NOT DEFINED SHELL_PATH ( | ||
SET SHELL_PATH=%PROGRAMFILES%\Git\bin\sh.exe | ||
echo Checking if Python is installed... | ||
python -V | ||
if %errorlevel% neq 0 exit /b %errorlevel% | ||
|
||
for /f "tokens=2" %%a in ('python -V') do set version=%%a | ||
|
||
set VERSION=%version% | ||
echo Detected Python v%VERSION%. | ||
|
||
set NUMBER=%VERSION%/Python | ||
|
||
echo Installing pipenv... | ||
pip install pipenv | ||
|
||
echo Checking pipenv version... | ||
pipenv --version | ||
if %errorlevel% neq 0 ( | ||
echo: | ||
echo Update the PATH variable in your environment to include the locations of both the Python application and its scripts directory. | ||
exit /b %errorlevel% | ||
) | ||
|
||
"%SHELL_PATH%" "%~dp0setup.sh" %* | ||
echo Running Python... | ||
pipenv --python %NUMBER% | ||
|
||
echo Creating Piplock.file... | ||
pipenv lock | ||
|
||
echo Syncing dependencies... | ||
pipenv sync |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,34 @@ | ||
@echo off | ||
@REM i2, i2 Group, the i2 Group logo, and i2group.com are trademarks of N.Harris Computer Corporation. | ||
@REM © N.Harris Computer Corporation (2022) | ||
setlocal | ||
|
||
IF NOT DEFINED SHELL_PATH ( | ||
SET SHELL_PATH=%PROGRAMFILES%\Git\bin\sh.exe | ||
echo Checking if Python is installed... | ||
python -V | ||
if %errorlevel% neq 0 exit /b %errorlevel% | ||
|
||
for /f "tokens=2" %%a in ('python -V') do set version=%%a | ||
|
||
set VERSION=%version% | ||
echo Detected Python v%VERSION%. | ||
|
||
set NUMBER=%VERSION%/Python | ||
|
||
echo Installing pipenv... | ||
pip install pipenv | ||
|
||
echo Checking pipenv version... | ||
pipenv --version | ||
if %errorlevel% neq 0 ( | ||
echo: | ||
echo Update the PATH variable in your environment to include the locations of both the Python application and its scripts directory. | ||
exit /b %errorlevel% | ||
) | ||
|
||
"%SHELL_PATH%" "%~dp0setup.sh" %* | ||
echo Running Python... | ||
pipenv --python %NUMBER% | ||
|
||
echo Creating Piplock.file... | ||
pipenv lock | ||
|
||
echo Syncing dependencies... | ||
pipenv sync |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,34 @@ | ||
@echo off | ||
@REM i2, i2 Group, the i2 Group logo, and i2group.com are trademarks of N.Harris Computer Corporation. | ||
@REM © N.Harris Computer Corporation (2022) | ||
setlocal | ||
|
||
IF NOT DEFINED SHELL_PATH ( | ||
SET SHELL_PATH=%PROGRAMFILES%\Git\bin\sh.exe | ||
echo Checking if Python is installed... | ||
python -V | ||
if %errorlevel% neq 0 exit /b %errorlevel% | ||
|
||
for /f "tokens=2" %%a in ('python -V') do set version=%%a | ||
|
||
set VERSION=%version% | ||
echo Detected Python v%VERSION%. | ||
|
||
set NUMBER=%VERSION%/Python | ||
|
||
echo Installing pipenv... | ||
pip install pipenv | ||
|
||
echo Checking pipenv version... | ||
pipenv --version | ||
if %errorlevel% neq 0 ( | ||
echo: | ||
echo Update the PATH variable in your environment to include the locations of both the Python application and its scripts directory. | ||
exit /b %errorlevel% | ||
) | ||
|
||
"%SHELL_PATH%" "%~dp0setup.sh" %* | ||
echo Running Python... | ||
pipenv --python %NUMBER% | ||
|
||
echo Creating Piplock.file... | ||
pipenv lock | ||
|
||
echo Syncing dependencies... | ||
pipenv sync |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,34 @@ | ||
@echo off | ||
@REM i2, i2 Group, the i2 Group logo, and i2group.com are trademarks of N.Harris Computer Corporation. | ||
@REM © N.Harris Computer Corporation (2022) | ||
setlocal | ||
|
||
IF NOT DEFINED SHELL_PATH ( | ||
SET SHELL_PATH=%PROGRAMFILES%\Git\bin\sh.exe | ||
echo Checking if Python is installed... | ||
python -V | ||
if %errorlevel% neq 0 exit /b %errorlevel% | ||
|
||
for /f "tokens=2" %%a in ('python -V') do set version=%%a | ||
|
||
set VERSION=%version% | ||
echo Detected Python v%VERSION%. | ||
|
||
set NUMBER=%VERSION%/Python | ||
|
||
echo Installing pipenv... | ||
pip install pipenv | ||
|
||
echo Checking pipenv version... | ||
pipenv --version | ||
if %errorlevel% neq 0 ( | ||
echo: | ||
echo Update the PATH variable in your environment to include the locations of both the Python application and its scripts directory. | ||
exit /b %errorlevel% | ||
) | ||
|
||
"%SHELL_PATH%" "%~dp0setup.sh" %* | ||
echo Running Python... | ||
pipenv --python %NUMBER% | ||
|
||
echo Creating Piplock.file... | ||
pipenv lock | ||
|
||
echo Syncing dependencies... | ||
pipenv sync |