============================= Advanced Setup ============================= This section is for developper only. If you have access to the repository (not only the wheel file) in order to adapt the workflow or to participate to FRF developpement. You will need to setup you environment and to clone the repository Setup the linux environment in Total PC ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Open the .bashrc file in order to edit the environment paths (Using an editor like vim) Add the following: .. code-block:: bash conda create --name frfenv python=3.8 # User specific aliases and functions export PATH=/data/pau_hpda/projects/DACC/FRF/Anaconda/anaconda3/bin:${PATH} export frf_wdir=/data/pau_hpda/users/ export frf_data=/data/pau_hpda/projects/DACC/FRF/data alias pycharm=/data/appli_PITSI/soft/tools/IDE/pycharm/run_pycharm_2018.sh unset SUDO_UID SUDO_GID SUDO_USER source activate frf_v1 Clone the Bitbucket repo ~~~~~~~~~~~~~~~~~~~~~~~~~~ Before starting, you should make sure you have a way to access git commands. This can be done either by logging to an XRAI session, and directly use terminal, or from Windows using tools such as Git Bash or Sourcetree. Set up proxies Before you can use the repository, it is mandatory to configure git on your unix instance. To do so, open the terminal and type the following commands. .. code-block:: bash git config --global http.sslVerify false git config --global https.proxy 'http://:@emeamai-px01.main.glb.corp.local:8080/' git config --global http.proxy 'http://:@emeamai-px01.main.glb.corp.local:8080/' Clone the repo ~~~~~~~~~~~~~~~~~~~~~~~~~~ You need to copy the URL of the repo (available in the top right in Azure Devops). For frflib : https://dev.azure.com/INOX-code/FRF/_git/frflib To clone the repo, run one of the following commands you can follow the azure instruction. .. code-block:: bash ## Basic clone https://:e@dev.azure.com/INOX-Code/FRF/_git/frflib Setup the proxy for conda: ~~~~~~~~~~~~~~~~~~~~~~~~~~ Open the file condarc Setup the environment in Windows: ---------------------------------- Here are some indications on setting up the environment in windows. Contact FRF team to have some additional support - First download and install anaconda in c:/local/anaconda - Setup the git: - Install git to C:\Local\Git\ - add the following env variable: C:\Local\Git\cmd - Setup the the proxy for conda: - Locate .condarc file - normally located in c:/user/jxxxx/.condarc - Update the condarc as previously explained => To add proxy to condarc - Add the following environment variables: - PATH: C:\Local\Anaconda\Scripts / C:\Local\Anaconda\condabin / - For PIP proxy (Needed to use PIP for installation), add the following env variables: - HTTP_PROXY: http://:@emeamai-px01.main.glb.corp.local:8080/ - HTTPS_PROXY: http://:@emeamai-px01.main.glb.corp.local:8080/ - Installing requirements from file requirement.txt using conda or PIP install For frflib proto, one package (geopandas) has some issues for installation and needs a particular procedure for instalation: - The procedure is explained in stack overflow https://stackoverflow.com/questions/56958421/pip-install-geopandas-on-windows - Install shapely and then geopandas using conda to finish the procedure Data Science environment