Commit a0966d3a authored by Łukasz Nowak's avatar Łukasz Nowak

- invokepython egg is providing same functionality, remove duplicated code


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@37532 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent dfd40f61
invokepython
============
This is workaround wrapper generator for python, which allows to generate
fully stuffed with eggs interpreter.
Generated wrapper behaves like original python binary, accepting all arguments.
It executes original python with replacing self process.
Known issues
------------
Because of being another interpreter in chain of invocation of interpreters it
can suffer of shebang limitations.
http://www.in-ulm.de/~mascheck/various/shebang/
import sys, os
def invokepython():
os.environ['PYTHONPATH'] = ':'.join(sys.path)
os.execl(sys.executable, *sys.argv)
from setuptools import setup, find_packages
name = "invokepython"
version = '0.1'
setup(
name = name,
version = version,
author = "Lukasz Nowak",
author_email = "luke@nexedi.com",
description = "Generates python wrapper around python interpreter",
long_description = "Generates python wrapper, which acts like normal "\
"python interpreter, but containing full list of additional python "\
"paths",
license = "ZPL 2.1",
keywords = "python interpreter",
packages = find_packages(),
scripts = [name+".py",],
include_package_data = True,
classifiers=[
"License :: OSI Approved :: Zope Public License",
"Framework :: Buildout",
"Operating System :: POSIX :: Linux",
],
zip_safe=False,
entry_points = """
[console_scripts]
invokepython = invokepython:invokepython
""",
)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment