Skip to content

Expose python version for cfg() #803

@ijl

Description

@ijl

pyo3 uses [cfg(Py_3_6)] etc., which is set in build.rs as println!("cargo:rustc-cfg=Py_3_.... Could this exposed to projects that use pyo3? There is a note in the file about being able to use flags to read these values, but that's left from cpython-rust some time ago and doesn't seem to work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions