mirror of
https://github.com/novatiq/packages.git
synced 2026-07-07 04:29:33 +01:00
python,python3: Move python-config to $(STAGING_DIR)/host
Build/InstallDev is passed a second argument, a path where host binaries should be placed (ultimately $(STAGING_DIR)/host). This change moves python[3]-config to that directory. Signed-off-by: Jeffery To <jeffery.to@gmail.com>
This commit is contained in:
@@ -8,8 +8,7 @@ from distutils import sysconfig
|
||||
# start changes
|
||||
host_prefix = sysconfig.PREFIX
|
||||
|
||||
target_bin_dir = os.path.dirname(os.path.abspath(__file__))
|
||||
target_prefix = os.path.normpath(os.path.join(target_bin_dir, '..'))
|
||||
target_prefix = '@TARGET_PREFIX@'
|
||||
|
||||
target_data_dir = os.path.join(target_prefix, 'lib', 'python' + sysconfig.get_config_var('VERSION') + '-openwrt')
|
||||
sys.path.append(target_data_dir)
|
||||
|
||||
Reference in New Issue
Block a user