This commit is contained in:
TriForceX
2019-09-25 20:51:37 -03:00
commit 6203ff3e7c
11215 changed files with 428258 additions and 0 deletions
@@ -0,0 +1,44 @@
From 3bc4b9c0d60a735b1d63e52f74492ace39f02824 Mon Sep 17 00:00:00 2001
From: Yegor Yefremov <yegorslists@googlemail.com>
Date: Thu, 27 Jul 2017 09:46:07 +0200
Subject: [PATCH] Determine boost_python name depending on current Python
version
Python2 requires boost_python27 and Python3 requires boost_python37
(since boost 1.67).
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
[Bernd: adapted for python-3.7]
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
setup.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/setup.py b/setup.py
index fdf5c27..4b38569 100644
--- a/setup.py
+++ b/setup.py
@@ -3,6 +3,10 @@
from setuptools import setup, find_packages, Extension
import sys, os
+boostlib = "boost_python37"
+if sys.version_info < (3, 0):
+ boostlib = "boost_python27"
+
setup(
name = 'pylibconfig',
description = "libconfig bindings for Python",
@@ -19,7 +23,7 @@ setup(
Extension(
"pylibconfig",
["src/pylibconfig.cc"],
- libraries=["boost_python", "config++"]
+ libraries=[boostlib, "config++"]
#include_dirs=includes,
#extra_link_args=lflags
)
--
2.11.0
+23
View File
@@ -0,0 +1,23 @@
comment "python-libconfig needs a glibc or uClibc toolchain w/ C++, threads"
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \
BR2_TOOLCHAIN_USES_MUSL
config BR2_PACKAGE_PYTHON_LIBCONFIG
bool "python-libconfig"
depends on BR2_INSTALL_LIBSTDCPP
depends on BR2_TOOLCHAIN_HAS_THREADS
# error: invalid use of incomplete type 'struct _IO_FILE'
depends on !BR2_TOOLCHAIN_USES_MUSL
select BR2_PACKAGE_BOOST
select BR2_PACKAGE_BOOST_PYTHON
select BR2_PACKAGE_LIBCONFIG
help
Python bindings to the C++ library libconfig
Libconfig is a simple library for manipulating structured
configuration files. The file format is more compact and more
readable than XML. And unlike XML, it is type-aware, so it is
not necessary to do string parsing in application code.
http://www.hyperrealm.com/libconfig/
https://github.com/cnangel/python-libconfig
@@ -0,0 +1,2 @@
# locally computed
sha256 f4cfb7e60b8fcee32ca3392c99932c579038db0852c1c2c42d7c4b859eea3c5c python-libconfig-b271c3d9dac938ad5cd29b67bd08cc5536a5a391.tar.gz
@@ -0,0 +1,17 @@
################################################################################
#
# python-libconfig
#
################################################################################
PYTHON_LIBCONFIG_VERSION = b271c3d9dac938ad5cd29b67bd08cc5536a5a391
PYTHON_LIBCONFIG_SITE = $(call github,cnangel,python-libconfig,$(PYTHON_LIBCONFIG_VERSION))
PYTHON_LIBCONFIG_LICENSE = BSD
PYTHON_LIBCONFIG_LICENSE_FILES = README
PYTHON_LIBCONFIG_SETUP_TYPE = setuptools
PYTHON_LIBCONFIG_DEPENDENCIES = libconfig boost
$(eval $(python-package))