Skip to content

LDLIBRARY is set to libpython3.9a although no static lib is included in mambaforge for Linux #565

@maxnoe

Description

@maxnoe

Solution to issue cannot be found in the documentation.

  • I checked the documentation.

Issue

Compiling software, I use sysconfig.get_config_var("LDLIBRARY") to get the name of the python library.

In a fresh mambaforge installation, this variable is set to libpython3.9.a but only shared libraries are present in the lib dir:

❯ python -c 'import sysconfig; print(sysconfig.get_config_var("LDLIBRARY"))'
libpython3.9.a

❯ ls -1 ~/.local/conda/lib/libpython*
/home/mnoethe/.local/conda/lib/libpython3.9.so
/home/mnoethe/.local/conda/lib/libpython3.9.so.1.0
/home/mnoethe/.local/conda/lib/libpython3.so

Installed packages

Fresh mambaforge installation

Environment info

❯ conda info

     active environment : base
    active env location : /home/mnoethe/.local/conda
            shell level : 1
       user config file : /home/mnoethe/.condarc
 populated config files : /home/mnoethe/.local/conda/.condarc
          conda version : 4.11.0
    conda-build version : not installed
         python version : 3.9.7.final.0
       virtual packages : __linux=5.14.0=0
                          __glibc=2.31=0
                          __unix=0=0
                          __archspec=1=x86_64
       base environment : /home/mnoethe/.local/conda  (writable)
      conda av data dir : /home/mnoethe/.local/conda/etc/conda
  conda av metadata url : None
           channel URLs : https://conda.anaconda.org/conda-forge/linux-64
                          https://conda.anaconda.org/conda-forge/noarch
          package cache : /home/mnoethe/.local/conda/pkgs
                          /home/mnoethe/.conda/pkgs
       envs directories : /home/mnoethe/.local/conda/envs
                          /home/mnoethe/.conda/envs
               platform : linux-64
             user-agent : conda/4.11.0 requests/2.26.0 CPython/3.9.7 Linux/5.14.0-1027-oem ubuntu/20.04.4 glibc/2.31
                UID:GID : 5074:5002
             netrc file : None
           offline mode : False

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions