From 4500cd80eafa5348f2b8ac8dff425bfc5f104185 Mon Sep 17 00:00:00 2001 From: Andrew <51118083+ArionThinker@users.noreply.github.com> Date: Sun, 17 Sep 2023 19:47:32 +0300 Subject: [PATCH] github.com/eliben/pycparser (#3346) * new file: projects/github.com/eliben/pycparser/package.yml * test deps --- .../github.com/eliben/pycparser/package.yml | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 projects/github.com/eliben/pycparser/package.yml diff --git a/projects/github.com/eliben/pycparser/package.yml b/projects/github.com/eliben/pycparser/package.yml new file mode 100644 index 00000000..24893fef --- /dev/null +++ b/projects/github.com/eliben/pycparser/package.yml @@ -0,0 +1,23 @@ +distributable: + url: https://github.com/eliben/pycparser/archive/release_v{{version.marketing}}.tar.gz + strip-components: 1 +versions: + github: eliben/pycparser/tags + strip: /^release_v/ +runtime: + env: + PYTHONPATH: "{{prefix}}/lib/python{{deps.python.org.version.major}}/site-packages:$PYTHONPATH" +dependencies: + python.org: ^3.11 +build: + script: + - python -m pip install --prefix={{prefix}} . + - mkdir -p {{prefix}}/pkgshare + - cp -r examples {{prefix}}/pkgshare/ + - run: ln -s python{{deps.python.org.version.marketing}} python{{deps.python.org.version.major}} + working-directory: "{{prefix}}/lib" +test: + dependencies: + tea.xyz/gx/cc: c99 + script: + - python {{prefix}}/pkgshare/examples/c-to-c.py {{prefix}}/pkgshare/examples/c_files/basic.c