1 Star 0 Fork 4.1K

chenzebin1/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------
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/chenzebin1/mindquantum.git
git@gitee.com:chenzebin1/mindquantum.git
chenzebin1
mindquantum
mindquantum
master

搜索帮助