forked from continuedev/continue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.cmd
31 lines (23 loc) · 752 Bytes
/
build.cmd
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
30
31
@echo off
REM 1. Remove unwanted stuff
rmdir /s /q build
rmdir /s /q env
rmdir /s /q dist
rmdir /s /q server\.venv
rmdir /s /q .tiktoken_cache
REM 2. Create a new virtual environment and activate it
python -m venv env
call env\Scripts\activate
REM 3. Install the required packages
pip install -r server\requirements.txt
pip install pyinstaller || exit /b 1
pip install maturin || exit /b 1
REM 4. Build the Rust library
cd server
env\Scripts\maturin develop
REM 4.5. Make .tiktoken_cache directory, used to package with tiktoken vocab file
mkdir .tiktoken_cache
REM 4.75. Call PyInstaller from within the virtual environment
env\Scripts\pyinstaller continue_server.spec
REM 5. Deactivate the virtual environment
call env\Scripts\deactivate.bat