BLD Add DISTDIR variable. ### Description

Adds `DISTDIR` env variable that points to the directory where libraries should be copied to when building shared libraries with recipe.

### Checklists

- [x] Add new / update outdated documentation

package:
  name: ssl
  version: 1.0.0 # Nonsense
  tag:
    - always
  top-level:
    - ssl
    - _ssl
build:
  type: cpython_module
  script: |
    mkdir dist
    export DISTDIR=$(pwd)/dist
    cd $CPYTHONBUILD
    emcc $STDLIB_MODULE_CFLAGS -c Modules/_ssl.c -o Modules/_ssl.o \
      $(pkg-config --cflags --dont-define-prefix openssl) \
      $(pkg-config --libs --dont-define-prefix openssl) \
      -DOPENSSL_THREADS # This declares that OPENSSL is threadsafe. We are single threaded so everything is threadsafe.
    emcc Modules/_ssl.o -o $DISTDIR/_ssl.so $SIDE_MODULE_LDFLAGS $(pkg-config --libs --dont-define-prefix openssl)

    cp Lib/ssl.py $DISTDIR

requirements:
  host:
    - openssl
  run:
    - openssl

package:
  name: ssl
  version: 1.0.0 # Nonsense
  tag:
    - always
  top-level:
    - ssl
    - _ssl
build:
  type: cpython_module
  script: |
    cd $CPYTHONBUILD
    emcc $STDLIB_MODULE_CFLAGS -c Modules/_ssl.c -o Modules/_ssl.o \
      $(pkg-config --cflags --dont-define-prefix openssl) \
      $(pkg-config --libs --dont-define-prefix openssl) \
      -DOPENSSL_THREADS # This declares that OPENSSL is threadsafe. We are single threaded so everything is threadsafe.
    emcc Modules/_ssl.o -o $DISTDIR/_ssl.so $SIDE_MODULE_LDFLAGS $(pkg-config --libs --dont-define-prefix openssl)

    cp Lib/ssl.py $DISTDIR

requirements:
  host:
    - openssl
  run:
    - openssl
