Skip to content
This repository was archived by the owner on Feb 2, 2024. It is now read-only.

Commit 7150b62

Browse files
Update SDC build instruction in Readme.rst (#562)
* Update SDC build instruction in Readme.rst * Apply comment * Correct Numba git repo; correct setuptools build description * Update according to the comments
1 parent cfbebc6 commit 7150b62

File tree

1 file changed

+36
-11
lines changed

1 file changed

+36
-11
lines changed

README.rst

Lines changed: 36 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ If you do not have conda, we recommend using Miniconda3::
3939
./miniconda.sh -b
4040
export PATH=$HOME/miniconda3/bin:$PATH
4141

42+
Intel SDC uses Numba ``ef119bcd1733ff49d71bdf2da8a66e91bb704f83`` commit (referred later as ``numba_commit``) from master branch for build and run.
43+
That is why it is required to build specified Numba first. Build steps are described below.
44+
4245
It is possible to build Intel SDC via conda-build or setuptools. Follow one of the
4346
cases below to install Intel SDC and its dependencies on Linux.
4447

@@ -47,23 +50,33 @@ Building on Linux with conda-build
4750
::
4851

4952
PYVER=<3.6 or 3.7>
53+
NUMPYVER=<1.16 or 1.17>
5054
conda create -n CBLD python=$PYVER conda-build
5155
source activate CBLD
52-
git clone https://github.com/IntelPython/sdc
56+
git clone https://github.com/IntelPython/sdc.git
5357
cd sdc
54-
# build Intel SDC
55-
conda build --python $PYVER --override-channels -c numba -c conda-forge -c defaults buildscripts/sdc-conda-recipe
58+
# Build Numba
59+
conda build --python $PYVER --numpy $NUMPYVER --output-folder <path_to_sdc>/numba_build -c numba -c defaults -c intel --override-channels buildscripts/numba-conda-recipe/recipe
60+
# Build Intel SDC
61+
conda build --python $PYVER --numpy $NUMPYVER -c file://<path_to_sdc>/numba_build -c numba -c defaults -c conda-forge --override-channels buildscripts/sdc-conda-recipe
5662

5763
Building on Linux with setuptools
5864
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5965
::
6066

6167
PYVER=<3.6 or 3.7>
62-
conda create -n SDC -q -y -c numba -c defaults -c conda-forge python=$PYVER numba pandas scipy mpich pyarrow=0.15.1 gcc_linux-64 gxx_linux-64
68+
NUMPYVER=<1.16 or 1.17>
69+
conda create -n SDC -q -y -c numba -c defaults -c intel -c conda-forge python=$PYVER numpy=$NUMPYVER pandas=0.25.3 scipy pyarrow=0.15.1 gcc_linux-64 gxx_linux-64 tbb-devel llvmlite=0.31.0
6370
source activate SDC
64-
git clone https://github.com/IntelPython/sdc
65-
cd sdc
71+
# Build Numba
72+
git clone https://github.com/numba/numba.git
73+
cd numba
74+
git checkout numba_commit
75+
python setup.py install
6676
# build SDC
77+
cd ..
78+
git clone https://github.com/IntelPython/sdc.git
79+
cd sdc
6780
python setup.py install
6881

6982
In case of issues, reinstalling in a new conda environment is recommended.
@@ -85,23 +98,35 @@ Building on Windows with conda-build
8598
::
8699

87100
set PYVER=<3.6 or 3.7>
101+
set NUMPYVER=<1.16 or 1.17>
88102
conda create -n CBLD -q -y python=%PYVER% conda-build conda-verify vc vs2015_runtime vs2015_win-64
89103
conda activate CBLD
90104
git clone https://github.com/IntelPython/sdc.git
91105
cd sdc
92-
conda build --python %PYVER% --override-channels -c numba -c defaults -c intel buildscripts\sdc-conda-recipe
106+
# Build Numba
107+
conda build --python %PYVER% --numpy %NUMPYVER% --output-folder <path_to_sdc>\numba_build -c numba -c defaults -c intel --override-channels buildscripts\numba-conda-recipe\recipe
108+
# Build Intel SDC
109+
conda build --python %PYVER% --numpy %NUMPYVER% -c <path_to_sdc>\numba_build -c numba -c defaults -c conda-forge --override-channels buildscripts\sdc-conda-recipe
93110

94111
Building on Windows with setuptools
95112
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
96113
::
97114

98-
conda create -n SDC -c numba -c defaults -c intel -c conda-forge python=<3.6 or 3.7> numba impi-devel pyarrow=0.15.0 arrow-cpp=0.15.0 scipy pandas boost
115+
set PYVER=<3.6 or 3.7>
116+
set NUMPYVER=<1.16 or 1.17>
117+
conda create -n SDC -c numba -c defaults -c intel -c conda-forge python=%PYVER% numpy=%NUMPYVER% pandas=0.25.3 scipy pyarrow=0.15.1 tbb-devel llvmlite=0.31.0
99118
conda activate SDC
100-
git clone https://github.com/IntelPython/sdc.git
101-
cd sdc
102119
set INCLUDE=%INCLUDE%;%CONDA_PREFIX%\Library\include
103120
set LIB=%LIB%;%CONDA_PREFIX%\Library\lib
104-
%CONDA_PREFIX%\Library\bin\mpivars.bat quiet
121+
# Build Numba
122+
git clone https://github.com/numba/numba.git
123+
cd numba
124+
git checkout numba_commit
125+
python setup.py install
126+
# Build Intel SDC
127+
cd ..
128+
git clone https://github.com/IntelPython/sdc.git
129+
cd sdc
105130
python setup.py install
106131

107132
.. "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64

0 commit comments

Comments
 (0)