1 Star 0 Fork 3.5K

東西南北東 / mindquantum

forked from MindSpore / mindquantum 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
build.bat 1.83 KB
一键复制 编辑 原始数据 按行查看 历史
@rem Copyright 2020 Huawei Technologies Co., Ltd
@rem
@rem Licensed under the Apache License, Version 2.0 (the "License");
@rem you may not use this file except in compliance with the License.
@rem You may obtain a copy of the License at
@rem
@rem http://www.apache.org/licenses/LICENSE-2.0
@rem
@rem Unless required by applicable law or agreed to in writing, software
@rem distributed under the License is distributed on an "AS IS" BASIS,
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@rem See the License for the specific language governing permissions and
@rem limitations under the License.
@rem ============================================================================
@echo off
@title mindquantum_build
SET BASE_PATH=%CD%
SET BUILD_PATH=%BASE_PATH%\build
SET OUTPUT=%BASE_PATH%\output
IF NOT EXIST "%BUILD_PATH%" (
md "build"
)
rem ============================================================================
cd %BASE_PATH%
rem -----------------------------------------------------------------------------
rem Create a virtual environment for building the wheel
python -m venv venv
call venv\Scripts\activate.bat
python -m pip install -U pip setuptools build wheel pybind11
rem ============================================================================
rem Build the wheels
echo python -m build -w -C--global-option=--set -C--global-option=ENABLE_PROJECTQ -C--global-option=--unset -C--global-option=ENABLE_QUEST %*
python -m build -w -C--global-option=--set -C--global-option=ENABLE_PROJECTQ -C--global-option=--unset -C--global-option=ENABLE_QUEST %*
rem -----------------------------------------------------------------------------
rem Move the wheels to the output directory
IF NOT EXIST "%OUTPUT%" (
md "output"
)
move /Y %BASE_PATH%\dist\* %OUTPUT%
echo ------Successfully created mindquantum package------
Python
1
https://gitee.com/jokerxu924/mindquantum.git
git@gitee.com:jokerxu924/mindquantum.git
jokerxu924
mindquantum
mindquantum
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891