Skip to content

ariovistus/pyd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

59c8b3c · Jan 16, 2025
Feb 3, 2021
May 13, 2020
Dec 1, 2019
Jan 22, 2022
Mar 3, 2021
May 17, 2021
Nov 5, 2020
Dec 17, 2014
May 13, 2020
Jul 16, 2013
Mar 2, 2019
Nov 8, 2011
Aug 21, 2018
Nov 27, 2014
Oct 24, 2016
Feb 3, 2021
Jan 14, 2025
Jan 16, 2015
Oct 29, 2015
Oct 24, 2016
Sep 2, 2018
Sep 3, 2018
May 26, 2017
Oct 24, 2016
Mar 12, 2022
Dec 8, 2017

Repository files navigation

build-status-badge docs-badge pypi-version license-badge

PyD

PyD provides seamless interoperability between Python and the D programming language.

Usage

To use with dub, either specify the relevant subConfiguration for your python version, or run source pyd_set_env_vars.sh <your python> on linux or pyd_set_env_vars.bat <your python> on windows to set the relevant environment variables and use the env subConfiguration.

These scripts can be run from any directory, but to facilitate using PyD as a dependency pulled from the dub registry you can run dub run pyd:setup to copy them to the current directory for use, e.g. given you are in the current directory of a package that depends on pyd, run dub run pyd:setup followed by source pyd_set_env_vars.sh, then build your package as normal.

Requirements

Python

CPython 2.6+

D Compilers

  • DMD, LDC fe2.065+
  • GDC fe2.065+, embedding only (GDC still doesn't have shared library support!)

Note all D compilers are based on DMD's front end, so while LDC and GDC have their own versioning schemes, I only pay attention to the front end version.