Compare commits
10
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6a2ca8045e | ||
|
|
be6a252039 | ||
|
|
2456c1a3a4 | ||
|
|
84e61123a1 | ||
|
|
f9f2379d3e | ||
|
|
02f6f3475c | ||
|
|
775dba6377 | ||
|
|
adb190a0e0 | ||
|
|
b1c7d1300d | ||
|
|
ee925a12f9 |
No files matched your search
@@ -6,16 +6,18 @@ pipeline {
|
||||
stage('Build') {
|
||||
steps {
|
||||
echo 'Building..'
|
||||
if (fileExists('.venv')) {
|
||||
echo 'Using existing Python virtual env'
|
||||
} else {
|
||||
echo 'Creating Python virtual env'
|
||||
sh 'python3 -m venv .venv'
|
||||
script {
|
||||
if (fileExists('.venv')) {
|
||||
echo 'Using existing Python virtual env'
|
||||
} else {
|
||||
echo 'Creating Python virtual env'
|
||||
bat 'tools\\ensure_venv.cmd'
|
||||
}
|
||||
}
|
||||
bat """
|
||||
.venv\\Scripts\\activate
|
||||
pip install -r requirements.txt
|
||||
python tools\\py\\build_spark.py --build-type Release
|
||||
call .venv\\Scripts\\activate
|
||||
call pip install -r requirements.txt
|
||||
call python tools\\py\\build_spark.py --configuration Release
|
||||
"""
|
||||
}
|
||||
post {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
@echo off
|
||||
@echo on
|
||||
|
||||
@call %~dp0..\tools\ensure_venv.cmd
|
||||
touch %~dp0..\src\lib\CMakeLists.txt
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
@echo off
|
||||
|
||||
call "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\Tools\\VsDevCmd.bat"
|
||||
call .venv\\Scripts\\activate
|
||||
call set PYTHONPATH=%~dp0\..\.venv\Scripts\python
|
||||
call .venv\Scripts\python.exe tools\py\build_spark.py %*
|
||||
|
||||
EXIT /B %ERRORLEVEL%
|
||||
@@ -173,8 +173,7 @@ def _get_arg_parser():
|
||||
metavar='debug|release',
|
||||
type=str,
|
||||
nargs='?',
|
||||
help='The build configuration',
|
||||
default='Debug')
|
||||
help='The build configuration')
|
||||
|
||||
parser.add_argument(
|
||||
'-o',
|
||||
@@ -336,9 +335,10 @@ def _main():
|
||||
link_build_dir = arg_to_path(get_arg(args_dict, 'link_output_dir'))
|
||||
targets = flatten_arglist(get_arg(args_dict, 'target'))
|
||||
verbosity = get_arg(args_dict, 'verbosity') or None
|
||||
|
||||
configuration = args.configuration or 'Release' if targets is not None and any(
|
||||
filter(lambda t: t.lower() == 'publish', targets)) else 'Debug'
|
||||
build(
|
||||
configuration=args.configuration,
|
||||
configuration=configuration,
|
||||
clean=args.clean,
|
||||
restore=args.restore,
|
||||
build_dir=build_dir,
|
||||
|
||||
Reference in new issue
Block a user