-
Notifications
You must be signed in to change notification settings - Fork 38
Add building wheel packages #85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 10 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
1167a7c
Add building wheel packages
antonwolfy b185586
Extend GH workflow with Conda build to upload wheels
antonwolfy eaefa35
Correct path to the conda build folder
antonwolfy 837ecca
Setting rpath to _mklinit.*.so
antonwolfy 8eb354d
No need to set RPATH on Windows
antonwolfy 1df9800
Fix pre-commit
antonwolfy aacc1d0
Set release date to 2.5.0
antonwolfy a029b79
Add change to the changelog
antonwolfy 2e5ec25
Rolled back changes with fetching build number from GIT_DESCRIBE envs
antonwolfy 023d4be
No need to call wheel tags on Windows
antonwolfy 65f257c
Add explicit conda-build pinning to sysroot 2.28
antonwolfy 87a2b46
Adding gcc and gxx to the conda-build config
antonwolfy b3e9c3e
Add stdlib to build dep
antonwolfy ceb1091
Adding rpaths to mkl_info dict doesn't require mkl_root check
antonwolfy 9adf060
Step version to 2.5.1
antonwolfy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,32 @@ | ||
|
||
@rem Remember to activate compiler, if needed | ||
echo on | ||
rem set CFLAGS=-I%PREFIX%\Library\include %CFLAGS% | ||
rem set LDFLAGS=/LIBPATH:%PREFIX% %LDFLAGS% | ||
|
||
set MKLROOT=%CONDA_PREFIX% | ||
%PYTHON% -m pip install --no-build-isolation --no-deps . | ||
if errorlevel 1 exit 1 | ||
|
||
"%PYTHON%" setup.py clean --all | ||
|
||
:: Make CMake verbose | ||
set "VERBOSE=1" | ||
|
||
:: -wnx flags mean: --wheel --no-isolation --skip-dependency-check | ||
%PYTHON% -m build -w -n -x | ||
if %ERRORLEVEL% neq 0 exit 1 | ||
|
||
:: wheel file was renamed | ||
for /f %%f in ('dir /b /S .\dist') do ( | ||
%PYTHON% -m pip install %%f ^ | ||
--no-build-isolation ^ | ||
--no-deps ^ | ||
--only-binary :all: ^ | ||
--no-index ^ | ||
--prefix %PREFIX% ^ | ||
-vv | ||
if %ERRORLEVEL% neq 0 exit 1 | ||
) | ||
|
||
:: Copy wheel package | ||
if NOT "%WHEELS_OUTPUT_FOLDER%"=="" ( | ||
copy dist\mkl_service*.whl %WHEELS_OUTPUT_FOLDER% | ||
if %ERRORLEVEL% neq 0 exit 1 | ||
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,32 @@ | ||
#!/bin/bash -x | ||
#!/bin/bash | ||
set -ex | ||
|
||
# make sure that compiler has been sourced, if necessary | ||
export MKLROOT=$CONDA_PREFIX | ||
|
||
MKLROOT=$CONDA_PREFIX $PYTHON -m pip install --no-build-isolation --no-deps . | ||
read -r GLIBC_MAJOR GLIBC_MINOR <<<"$(conda list '^sysroot_linux-64$' \ | ||
| tail -n 1 | awk '{print $2}' | grep -oP '\d+' | head -n 2 | tr '\n' ' ')" | ||
|
||
${PYTHON} setup.py clean --all | ||
|
||
# Make CMake verbose | ||
export VERBOSE=1 | ||
|
||
# -wnx flags mean: --wheel --no-isolation --skip-dependency-check | ||
${PYTHON} -m build -w -n -x | ||
|
||
${PYTHON} -m wheel tags --remove \ | ||
--platform-tag "manylinux_${GLIBC_MAJOR}_${GLIBC_MINOR}_x86_64" \ | ||
dist/mkl_service*.whl | ||
|
||
${PYTHON} -m pip install dist/mkl_service*.whl \ | ||
--no-build-isolation \ | ||
--no-deps \ | ||
--only-binary :all: \ | ||
--no-index \ | ||
--prefix "${PREFIX}" \ | ||
-vv | ||
|
||
# Copy wheel package | ||
if [[ -d "${WHEELS_OUTPUT_FOLDER}" ]]; then | ||
cp dist/mkl_service*.whl "${WHEELS_OUTPUT_FOLDER[@]}" | ||
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.