olpc

How to include and use .eggs/pkg_resources within a project directory targeting python 2.5.1

旧时模样 提交于 2019-12-07 14:37:33
问题 I have python .egg files that are stored in a relative location to some .py code. The problem is, I am targeting python 2.5.1 computers which require my project be self contained in a folder (hundreds of thousands of OLPC XO 8.2.1 release laptops running Sugar). This means I cannot just ./ez_install to perform a system-wide setuptools/pkg_resources installation. Example directory structure: My Application/ My Application/library1.egg My Application/libs/library2.egg My Application/test.py I

How to include and use .eggs/pkg_resources within a project directory targeting python 2.5.1

非 Y 不嫁゛ 提交于 2019-12-06 03:49:04
I have python .egg files that are stored in a relative location to some .py code. The problem is, I am targeting python 2.5.1 computers which require my project be self contained in a folder (hundreds of thousands of OLPC XO 8.2.1 release laptops running Sugar). This means I cannot just ./ez_install to perform a system-wide setuptools/pkg_resources installation. Example directory structure: My Application/ My Application/library1.egg My Application/libs/library2.egg My Application/test.py I am wondering how best to import and use library1 and library2 from within test.py with no pkg_resources