代码拉取完成,页面将自动刷新
@echo off
setlocal EnableDelayedExpansion
SET VERSIONS=3.8 3.9 3.10 3.11 3.12
SET SOURCEDIR=%cd%
REM Build packages
for %%v in (%VERSIONS%) do (
SET ENV_NAME=py%%v
REM Create and activate environment
cd %ROOT_DIR%
CALL C:\Miniconda/condabin/conda.bat config --add channels conda-forge
CALL C:\Miniconda/condabin/conda.bat config --set channel_priority strict
CALL C:\Miniconda/condabin/conda.bat create -y -n py%%v python=%%v
if !ERRORLEVEL! NEQ 0 (EXIT !ERRORLEVEL!)
CALL C:\Miniconda/condabin/conda.bat activate py%%v
if !ERRORLEVEL! NEQ 0 (EXIT !ERRORLEVEL!)
pip install --no-cache-dir setuptools wheel pytest
if !ERRORLEVEL! NEQ 0 (EXIT !ERRORLEVEL!)
REM Build and package
python setup.py build_ext bdist_wheel
if !ERRORLEVEL! NEQ 0 (EXIT !ERRORLEVEL!)
REM Cleanup
CALL C:\Miniconda/condabin/conda.bat deactivate
rmdir /S /Q build python\opencc\clib OpenCC.egg-info
)
if NOT "%~1"=="testonly" (
REM Upload to PyPI
C:\Miniconda/condabin/conda.bat activate py3.8
python -m pip install twine
python -m twine upload dist/*
)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。