b1eca56ec3
* Add python3-sys to rust-cpython as an optional feature, and make python27-sys also optional, but still the default * Parametrise python27-sys/build.rs so that it is python version independent, and clone it into python3-sys/build.rs. Hopefully this can continue to be maintained as an identical file. * python27-sys and python3-sys gain features for explicitly selecting a python version to link to. for python27-sys, there's currently only python27; for python3-sys there's python 3.4 and 3.5. * explicitly tell travis to use nightlies (seems to have started trying to use 1.0.0)
41 lines
969 B
TOML
41 lines
969 B
TOML
[package]
|
|
name = "python3-sys"
|
|
version = "0.1.0"
|
|
description = "FFI Declarations for Python 3"
|
|
readme = "README.md"
|
|
keywords = [
|
|
"python",
|
|
"cpython",
|
|
"libpython3",
|
|
]
|
|
homepage = "https://github.com/dgrunwald/rust-cpython/tree/master/python3-sys"
|
|
repository = "https://github.com/dgrunwald/rust-cpython/tree/master/python3-sys"
|
|
license = "Python-2.0"
|
|
authors = ["Daniel Grunwald <daniel@danielgrunwald.de>"]
|
|
links = "python3"
|
|
build = "build.rs"
|
|
exclude = [
|
|
".gitignore",
|
|
".travis.yml",
|
|
]
|
|
|
|
[dependencies]
|
|
libc = "*"
|
|
|
|
[build-dependencies]
|
|
# pkg-config = "0.3"
|
|
regex = "0.1.8"
|
|
|
|
# TODO: depends on trunk pkg-config for now because we
|
|
# require 14c4b9, can revert this when alex bumps the
|
|
# crate release
|
|
[build-dependencies.pkg-config]
|
|
git = "https://github.com/alexcrichton/pkg-config-rs.git"
|
|
|
|
[features]
|
|
# This is examined by ./build.rs to determine which python version
|
|
# to try to bind to.
|
|
default = ["python_3_4"]
|
|
python_3_4 = []
|
|
python_3_5 = []
|