[pypy-issue] [issue1361] pypy.rlib.entrypoint doesn't make function exported on Windows
Alexander Raud
tracker at bugs.pypy.org
Mon Jan 7 11:16:05 CET 2013
New submission from Alexander Raud <araud at mail.ru>:
Hi!
To reproduce, please translate on _Windows_ attached file with command: "--
shared --entrypoints=API my_lang.py"
Function with decorator @entrypoint("API", [], c_name='test_function') is
created, but not exported as secondary entry point.
(In Windows symbols are not exported by default, like in Linux)
Please contact me if it takes more details.
With respect, Alexander.
----------
files: my_lang.py
messages: 5126
nosy: araud, pypy-issue
priority: bug
status: unread
title: pypy.rlib.entrypoint doesn't make function exported on Windows
________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1361>
________________________________________
-------------- next part --------------
import sys
from pypy.rlib.entrypoint import entrypoint
def entry_point(argv):
print "hello!"
return 0
def target(*args):
return entry_point, None
@entrypoint("API", [], c_name='test_function')
def test_function():
return 1
if __name__ == "__main__":
entry_point(sys.argv)
More information about the pypy-issue
mailing list