Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

39,789 Commits

Folders and files

Repository files navigation

advsetuptools

Wrapper for Python's setuptools


Installation:

pip install "advsetuptools @ git+https://github.com/MineFartS/advsetuptools"

Features:

  • Advanced pybind11 behavior and syntax

  • Automatic .pyi stub generation (mypy)

  • Automatic documentation (sphinx-autodoc2) with GitHub Pages deployment (ghp-import)

  • Git submodule management


Example:

from advsetuptools import setup, cpp_ext, update_submodule

update_submodule(recurse=True) # Optional

ext_win_only = cpp_ext(
    "mypkg/win_native.cpp",
    platforms=["win32"],
    extra_objects=["libs/*.lib"],
)

ext_cross_platform = cpp_ext(
    "mypkg/fast_math.cpp",
    include_dirs=["external/include"],
)

setup(
    ext_win_only,
    ext_cross_platform,
)

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages