Repository: uber/causalml (language: python)

Issue:
build from source failing: no such file or directory <crpyt.h>
[Builds from source](https://github.com/uber/causalml/actions/workflows/test-build-from-source.yml) are failing for python 3.7 and 3.8 due to a missing file <crypt.h>:

![image](https://github.com/uber/causalml/assets/9282281/5cd547d3-898e-4d45-98c6-255ce2509aa4)

**To Reproduce**
Follow build from source installation steps

**Expected behavior**
No failure.

**Environment (please complete the following information):**
See run details at: https://github.com/uber/causalml/actions/runs/8746279634

build from source failing: no such file or directory <crpyt.h>
[Builds from source](https://github.com/uber/causalml/actions/workflows/test-build-from-source.yml) are failing for python 3.7 and 3.8 due to a missing file <crypt.h>:

![image](https://github.com/uber/causalml/assets/9282281/5cd547d3-898e-4d45-98c6-255ce2509aa4)

**To Reproduce**
Follow build from source installation steps

**Expected behavior**
No failure.

**Environment (please complete the following information):**
See run details at: https://github.com/uber/causalml/actions/runs/8746279634

build from source failing: no such file or directory <crpyt.h>
[Builds from source](https://github.com/uber/causalml/actions/workflows/test-build-from-source.yml) are failing for python 3.7 and 3.8 due to a missing file <crypt.h>:

![image](https://github.com/uber/causalml/assets/9282281/5cd547d3-898e-4d45-98c6-255ce2509aa4)

**To Reproduce**
Follow build from source installation steps

**Expected behavior**
No failure.

**Environment (please complete the following information):**
See run details at: https://github.com/uber/causalml/actions/runs/8746279634

build from source failing: no such file or directory <crpyt.h>
[Builds from source](https://github.com/uber/causalml/actions/workflows/test-build-from-source.yml) are failing for python 3.7 and 3.8 due to a missing file <crypt.h>:

![image](https://github.com/uber/causalml/assets/9282281/5cd547d3-898e-4d45-98c6-255ce2509aa4)

**To Reproduce**
Follow build from source installation steps

**Expected behavior**
No failure.

**Environment (please complete the following information):**
See run details at: https://github.com/uber/causalml/actions/runs/8746279634



Discussion / hints:
This seems related to [this change in conda-forge](https://github.com/conda-forge/linux-sysroot-feedstock/issues/52#issuecomment-1946615469).
This seems related to [this change in conda-forge](https://github.com/conda-forge/linux-sysroot-feedstock/issues/52#issuecomment-1946615469).
This seems related to [this change in conda-forge](https://github.com/conda-forge/linux-sysroot-feedstock/issues/52#issuecomment-1946615469).
This seems related to [this change in conda-forge](https://github.com/conda-forge/linux-sysroot-feedstock/issues/52#issuecomment-1946615469).

Fix patch:
diff --git a/docs/installation.rst b/docs/installation.rst
index 32be82c4..58cdaa1e 100644
--- a/docs/installation.rst
+++ b/docs/installation.rst
@@ -34,6 +34,8 @@ Install from the ``conda`` virtual environment
 
 This will create a new ``conda`` virtual environment named ``causalml-[tf-]py3x``, where ``x`` is in ``[7, 8, 9]``. e.g. ``causalml-py37`` or ``causalml-tf-py38``. If you want to change the name of the environment, update the relevant YAML file in ``envs/``.
 
+Note: if you do not have the base cxx-compiler libraries installed, follow the ``Install from source`` instructions below to install them first.
+
 .. code-block:: bash
 
     git clone https://github.com/uber/causalml.git
@@ -80,6 +82,7 @@ Create a clean ``conda`` environment.
     conda install -c conda-forge cxx-compiler
     conda install python-graphviz
     conda install -c conda-forge xorg-libxrender
+    conda install -c conda-forge libxcrypt
 
 Then:
 


Test patch:
diff --git a/.github/workflows/test-build-from-source.yml b/.github/workflows/test-build-from-source.yml
index 95725d78..8e477311 100644
--- a/.github/workflows/test-build-from-source.yml
+++ b/.github/workflows/test-build-from-source.yml
@@ -55,6 +55,7 @@ jobs:
           conda install -c conda-forge cxx-compiler
           conda install python-graphviz
           conda install -c conda-forge xorg-libxrender
+          conda install -c conda-forge libxcrypt
 
       - name: echo conda config
         run: |