mirror of
https://github.com/AtsushiSakai/PythonRobotics.git
synced 2026-02-18 07:41:21 -05:00
add module install check
This commit is contained in:
25
appveyor.yml
25
appveyor.yml
@@ -3,13 +3,12 @@ environment:
|
|||||||
# SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the
|
# SDK v7.0 MSVC Express 2008's SetEnv.cmd script will fail if the
|
||||||
# /E:ON and /V:ON options are not enabled in the batch script intepreter
|
# /E:ON and /V:ON options are not enabled in the batch script intepreter
|
||||||
# See: http://stackoverflow.com/a/13751649/163740
|
# See: http://stackoverflow.com/a/13751649/163740
|
||||||
PYTHON: "C:\\conda"
|
|
||||||
CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\appveyor\\run_with_env.cmd"
|
CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\appveyor\\run_with_env.cmd"
|
||||||
MINICONDA_FILENAME: "Miniconda2-latest-Windows-x86_64.exe"
|
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
|
- PYTHON: "C:\\conda"
|
||||||
PYTHON_VERSION: "3.5"
|
CONDA_INSTALL_LOCN: "C:\\Miniconda36-x64"
|
||||||
|
MINICONDA_FILENAME: "Miniconda2-latest-Windows-x86_64.exe"
|
||||||
|
|
||||||
init:
|
init:
|
||||||
- "ECHO %PYTHON% %PYTHON_VERSION% %PYTHON_ARCH%"
|
- "ECHO %PYTHON% %PYTHON_VERSION% %PYTHON_ARCH%"
|
||||||
@@ -27,11 +26,17 @@ install:
|
|||||||
- ECHO "Filesystem root:"
|
- ECHO "Filesystem root:"
|
||||||
- ps: "ls \"C:/\""
|
- ps: "ls \"C:/\""
|
||||||
|
|
||||||
|
- ECHO "Installed SDKs:"
|
||||||
|
- ps: "ls \"C:/Program Files/Microsoft SDKs/Windows\""
|
||||||
|
|
||||||
|
# Install Python (from the official .msi of https://python.org) and pip when
|
||||||
|
# not already installed.
|
||||||
|
- ps: if (-not(Test-Path($env:PYTHON))) { & appveyor\install.ps1 }
|
||||||
|
|
||||||
# Prepend newly installed Python to the PATH of this build (this cannot be
|
# Prepend newly installed Python to the PATH of this build (this cannot be
|
||||||
# done from inside the powershell script as it would require to restart
|
# done from inside the powershell script as it would require to restart
|
||||||
# the parent CMD process).
|
# the parent CMD process).
|
||||||
#- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
|
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
|
||||||
|
|
||||||
# Check that we have the expected version and architecture for Python
|
# Check that we have the expected version and architecture for Python
|
||||||
- "python --version"
|
- "python --version"
|
||||||
@@ -45,12 +50,10 @@ install:
|
|||||||
# compiled extensions and are not provided as pre-built wheel packages,
|
# compiled extensions and are not provided as pre-built wheel packages,
|
||||||
# pip will build them from source using the MSVC compiler matching the
|
# pip will build them from source using the MSVC compiler matching the
|
||||||
# target Python version and architecture
|
# target Python version and architecture
|
||||||
- "conda install numpy"
|
- "%PYTHON%/Scripts/pip.exe install numpy"
|
||||||
- "conda install pandas"
|
- "%PYTHON%/Scripts/pip.exe install pandas"
|
||||||
- "conda install scipy"
|
- "%PYTHON%/Scripts/pip.exe install scipy"
|
||||||
- "conda install matplotlib"
|
- "%PYTHON%/Scripts/pip.exe install matplotlib"
|
||||||
- "conda install -c conda-forge lapack"
|
|
||||||
- "conda install -c cvxgrp cvxpy"
|
|
||||||
|
|
||||||
build: off
|
build: off
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
from unittest import TestCase
|
from unittest import TestCase
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
if 'cvxpy' not in sys.modules:
|
||||||
|
return
|
||||||
|
|
||||||
sys.path.append("./PathTracking/model_predictive_speed_and_steer_control/")
|
sys.path.append("./PathTracking/model_predictive_speed_and_steer_control/")
|
||||||
|
|
||||||
from PathTracking.model_predictive_speed_and_steer_control import model_predictive_speed_and_steer_control as m
|
from PathTracking.model_predictive_speed_and_steer_control import model_predictive_speed_and_steer_control as m
|
||||||
|
|||||||
Reference in New Issue
Block a user