mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
create rootf's & SDK from 2018.02.9 buildroot (#10)
--------- Co-authored-by: tiopex <tiopxyz@gmail.com> Co-authored-by: tiopex <67048640+tiopex@users.noreply.github.com>
This commit is contained in:
+40
@@ -0,0 +1,40 @@
|
||||
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_python and Python3 requires boost_python3.
|
||||
|
||||
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
|
||||
---
|
||||
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_python3"
|
||||
+if sys.version_info < (3, 0):
|
||||
+ boostlib = "boost_python"
|
||||
+
|
||||
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
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
# locally computed
|
||||
sha256 f4cfb7e60b8fcee32ca3392c99932c579038db0852c1c2c42d7c4b859eea3c5c python-libconfig-b271c3d9dac938ad5cd29b67bd08cc5536a5a391.tar.gz
|
||||
sha256 7e47579751c8125eaa031fd10b197d3956d231323598a42612f30abf19c7fed0 README
|
||||
|
||||
@@ -14,10 +14,4 @@ PYTHON_LIBCONFIG_SETUP_TYPE = setuptools
|
||||
|
||||
PYTHON_LIBCONFIG_DEPENDENCIES = libconfig boost
|
||||
|
||||
define PYTHON_LIBCONFIG_FIX_SETUP
|
||||
$(SED) 's/boost_python/boost_python$(subst .,,$(PYTHON3_VERSION_MAJOR))/g' \
|
||||
$(@D)/setup.py
|
||||
endef
|
||||
PYTHON_LIBCONFIG_POST_PATCH_HOOKS += PYTHON_LIBCONFIG_FIX_SETUP
|
||||
|
||||
$(eval $(python-package))
|
||||
|
||||
Reference in New Issue
Block a user