Commit fcc4658 1 parent 642f6c0 commit fcc4658 Copy full SHA for fcc4658
File tree 3 files changed +7
-13
lines changed
3 files changed +7
-13
lines changed Original file line number Diff line number Diff line change 40
40
41
41
python3 -m pip install --upgrade pip setuptools wheel
42
42
if(!$?) { Exit $LASTEXITCODE }
43
- python3 -m pip install --upgrade cmake
44
- if(!$?) { Exit $LASTEXITCODE }
45
- $env:PYWARPX_LIB_DIR="$(Get-Location | Foreach-Object { $_.Path })\build\lib\Debug\"
46
- python3 -m pip install . -vv --no-build-isolation
43
+ cmake --build build --config Debug --target pip_install
47
44
if(!$?) { Exit $LASTEXITCODE }
48
45
49
46
python3 Examples\Modules\gaussian_beam\PICMI_inputs_gaussian_beam.py
90
87
91
88
python3 -m pip install --upgrade pip setuptools wheel
92
89
if errorlevel 1 exit 1
93
- python3 -m pip install --upgrade cmake
94
- if errorlevel 1 exit 1
95
- set "PYWARPX_LIB_DIR=%cd%\build\lib\"
96
- python3 -m pip install . -vv --no-build-isolation
90
+ cmake --build build --config Release --target pip_install
97
91
if errorlevel 1 exit 1
98
92
99
93
python3 Examples\Modules\gaussian_beam\PICMI_inputs_gaussian_beam.py --diagformat=openpmd
Original file line number Diff line number Diff line change @@ -436,10 +436,10 @@ if(WarpX_LIB)
436
436
437
437
# build the wheel by re-using the shared library we build
438
438
add_custom_target (${WarpX_CUSTOM_TARGET_PREFIX} pip_wheel
439
- ${CMAKE_COMMAND} -E rm -f ${WarpX_BINARY_DIR} /pywarpx* whl
439
+ ${CMAKE_COMMAND} -E rm -f -r warpx- whl
440
440
COMMAND
441
- ${CMAKE_COMMAND} -E env PYWARPX_LIB_DIR=${CMAKE_LIBRARY_OUTPUT_DIRECTORY}
442
- python3 -m pip wheel -v --no -build -isolation ${WarpX_SOURCE_DIR}
441
+ ${CMAKE_COMMAND} -E env PYWARPX_LIB_DIR=$<TARGET_FILE_DIR:shared>
442
+ python3 -m pip wheel -v --no -build -isolation -- no -deps --wheel-dir=warpx-whl ${WarpX_SOURCE_DIR}
443
443
WORKING_DIRECTORY
444
444
${WarpX_BINARY_DIR}
445
445
DEPENDS
@@ -463,7 +463,7 @@ if(WarpX_LIB)
463
463
# because otherwise pip would also force reinstall all dependencies.
464
464
add_custom_target (${WarpX_CUSTOM_TARGET_PREFIX} pip_install
465
465
${CMAKE_COMMAND} -E env WARPX_MPI=${WarpX_MPI}
466
- python3 -m pip install --force-reinstall --no -deps ${PYINSTALLOPTIONS} ${WarpX_BINARY_DIR} /pywarpx* whl
466
+ python3 -m pip install --force-reinstall --no -index -- no - deps ${PYINSTALLOPTIONS} -- find -links=warpx- whl pywarpx
467
467
WORKING_DIRECTORY
468
468
${WarpX_BINARY_DIR}
469
469
DEPENDS
Original file line number Diff line number Diff line change 1
1
include README.md LEGAL.txt LICENSE.txt
2
2
include pyproject.toml
3
- include requirements.txt
3
+ include requirements.txt requirements_mpi.txt
4
4
global-include CMakeLists.txt *.cmake *.in
5
5
recursive-include Source *
6
6
recursive-include Python *
You can’t perform that action at this time.
0 commit comments