私はBuildrootで組み込みシステムを実行しています。 PyDriveモジュールが必要なPythonアプリケーションを実行したいです。BuildrootにPythonパッケージを追加する
TEST FAILED: /home/desousa/buildroot/build/target/usr/lib/python2.7/site-packages/ does NOT support .pth files
error: bad install directory or PYTHONPATH
You are attempting to install a package to a directory that is not
on PYTHONPATH and which Python does not read ".pth" files from. The
installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:
/home/desousa/buildroot/build/target/usr/lib/python2.7/site-packages/
and your PYTHONPATH environment variable currently contains:
'/home/desousa/buildroot/build/target/usr/lib/python2.7/sysconfigdata/'
私のメイクファイル:
################################################################################
#
# pydrive
#
################################################################################
PYDRIVE_VERSION = 1.3.1
PYDRIVE_SOURCE = PyDrive-$(PYDRIVE_VERSION).tar.gz
PYDRIVE_SITE = https://pypi.python.org/packages/52/e0/0e64788e5dd58ce2d693454967
6243dc69d982f198524be9b99e9c2a4fd5
PYDRIVE_LICENSE = Apache License
PYDRIVE_LICENSE_FILES = LICENSE
PYDRIVE_DEPENDENCIES:=
PYDRIVE_SETUP_TYPE:=distutils
$(eval $(python-package))
私の設定ファイル:
config BR2_PACKAGE_PYTHON_PYDRIVE
bool "pydrive"
help
Wrapper library of google-api-python-client that simplifies many common Google Drive API tasks.
おかげで、
D
は、私のように見えるPYTHONPATHエラーを取得しています
ファイル、2 /あなたのパッケージConfig.in、3 /フルの.mkビルドログ。これがなければ、単にあなたを助ける方法がありません。 –
完了。ありがとう!!! – dswift
パッケージは動作しません。これはpython-pydriveという名前だからですが、すべての変数の名前はPYDRIVE_です。名前はPYTHON_PYDRIVE_ とする必要があります。 –