Skip to main content

Pip-installable package with pycparser's fake libc headers

Project description

pycparser-fake-libc

Simple build wrapper to create a pip-installable package which includes all of the headers from pycparser/utils/fake_libc_include.

See: https://github.com/eliben/pycparser

To build, run make to copy the headers from the submoduled pycparser into the library dir and build the wheel file

Usage:

import os
import pycparser_fake_libc
import pycparser

fake_libc_arg = "-I" + pycparser_fake_libc.directory

ast = pycparser.parse_file("c_file_to_parse.c", use_cpp=True, cpp_args=fake_libc_arg)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pycparser-fake-libc-2.21.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

pycparser_fake_libc-2.21-py2.py3-none-any.whl (28.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file pycparser-fake-libc-2.21.tar.gz.

File metadata

  • Download URL: pycparser-fake-libc-2.21.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for pycparser-fake-libc-2.21.tar.gz
Algorithm Hash digest
SHA256 a46fb5dada548182c39da340a6cd7366851359ffb78dee27cc619d65c33a51e8
MD5 5753a716bca4b631afb645dfdfec38ec
BLAKE2b-256 135ecc398fc8fa09a76752a2182cfa2e7ef37c63748a3a3710f713bc0f1c256a

See more details on using hashes here.

File details

Details for the file pycparser_fake_libc-2.21-py2.py3-none-any.whl.

File metadata

  • Download URL: pycparser_fake_libc-2.21-py2.py3-none-any.whl
  • Upload date:
  • Size: 28.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for pycparser_fake_libc-2.21-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ae1e51a6cab2f514f6612cb876ed70056ed49ea871c0d809b524f858e5cf5cd2
MD5 a8e2392765104bce16bc3b2cafcf1a54
BLAKE2b-256 ef0fc81e9122b735275d131e51e3f49a49de956f947509a0170110744d4c8c1e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page