-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild_package.bat
29 lines (23 loc) · 1.25 KB
/
build_package.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
@echo off
Title F4S Virtual Environment Builder
echo - This batch file creates and tests a FIFE package.
echo - You may wish to update the python and FIFE versions in this script.
echo - This file requires an Anaconda (or Miniconda) installation.
echo - You may need to specify your local path to activate.bat.
setlocal enabledelayedexpansion
rem call C:/Users/%username%/Miniconda3/Scripts/activate.bat
call C:/Users/%username%/Anaconda3/Scripts/activate.bat
call C:/Users/%username%/AppData/Local/Continuum/anaconda3/Scripts/activate.bat
call conda create -y -n fifeforspark python=3.7
call C:/Users/%username%/Anaconda3/Scripts/activate.bat fifeforspark
call C:/Users/%username%/AppData/Local/Continuum/anaconda3/Scripts/activate.bat fifeforspark
pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org --upgrade setuptools wheel
rmdir build /s /q
python setup.py sdist bdist_wheel
call conda install -y -c conda-forge iniconfig
for /F %%i in ('python setup.py --version') do set version=%%i
pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org --upgrade dist/fifeforspark-%version%-py3-none-any.whl black pytest scikit-learn
pip list --format=freeze > full_requirements.txt
@rem echo installed packages correctly!
black .
pause