Remove unused and broken Make.bat script (#6654)

This commit removes the unused Make.bat file. This file was originally
added to provide a similar entrypoint to the makefile for windows users
that do not have automake installed. However, it hasn't really been
updated in some time and also has many issues in (like missing targets
and a hard dependency on conda). Since it clearly isn't used and hasn't
been updated this commit just removes the script. Using tox is a much
more viable solution for windows developers that do not have automake
as it handles everything this script was trying to do but is up to date
and works with any python env.

Co-authored-by: Luciano Bello <bel@zurich.ibm.com>
This commit is contained in:
Matthew Treinish 2021-06-29 02:52:49 -04:00 committed by GitHub
parent 98ef1ca180
commit a2cc56f82e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 70 deletions

View File

@ -1,70 +0,0 @@
:: Copyright 2017, IBM.
::
:: This source code is licensed under the Apache License, Version 2.0 found in
:: the LICENSE.txt file in the root directory of this source tree.
@ECHO OFF
@SETLOCAL enabledelayedexpansion
pushd %~dp0
SET target=%~n1
IF "%target%"=="env" GOTO :env
IF "%target%"=="run" GOTO :run
IF "%target%"=="lint" GOTO :lint
IF "%target%"=="test" GOTO :test
IF "%target%"=="clean" GOTO :clean
:usage
ECHO.
ECHO.Usage:
ECHO. .\make env Switches to a Python virtual environment
ECHO. .\make run Runs Jupyter tutorials
ECHO. .\make lint Runs Python source code analysis tool
ECHO. .\make test Runs tests
ECHO. .\make prfile Runs profiling tests
ECHO. .\make clean Cleans previously generated documentation
ECHO.
GOTO :end
:env
SET QISKIT_ENV_FOUND=No
@FOR /F %%i IN ('conda info --envs') DO (
IF "%%i"=="QISKitenv" SET QISKIT_ENV_FOUND=Yes
)
IF "%QISKIT_ENV_FOUND%"=="No" (
conda create -y -n QISKitenv python=3
)
IF errorlevel 9009 GOTO :error
activate QISKitenv & pip install -r requirements.txt
IF errorlevel 9009 GOTO :error
GOTO :next
:lint
pylint qiskit test
IF errorlevel 9009 GOTO :error
GOTO :next
:test
IF errorlevel 9009 GOTO :error
python -m unittest discover -v
IF errorlevel 9009 GOTO :error
GOTO :next
:clean
GOTO :next
:error
ECHO.
ECHO.Something is missing in your Python installation.
ECHO.Please make sure you have properly installed Anaconda3
ECHO.(https://www.continuum.io/downloads), and that you are
ECHO.running the "Anaconda Shell Command".
ECHO.
exit /b 1
:next
:end
popd
ENDLOCAL