mirror of
https://github.com/roc-lang/roc.git
synced 2025-11-25 13:36:37 +00:00
first demo working!
This commit is contained in:
parent
80c43b552c
commit
a080fcae27
5 changed files with 411 additions and 0 deletions
19
examples/python-interop/setup.py
Normal file
19
examples/python-interop/setup.py
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
import os
|
||||
from distutils.core import setup, Extension
|
||||
|
||||
os.environ["LD_LIBRARY_PATH"] += ':' + os.getcwd()
|
||||
print(os.environ["LD_LIBRARY_PATH"]);
|
||||
|
||||
def main():
|
||||
setup(name="demo",
|
||||
version="1.0.0",
|
||||
description="Python interface for the fputs C library function",
|
||||
author="dankey",
|
||||
ext_modules=[
|
||||
Extension("demo", sources=["demo.c"],
|
||||
libraries=["hello"], library_dirs=["/home/dankey/dev/roc/examples/python-interop"]
|
||||
)
|
||||
])
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Loading…
Add table
Add a link
Reference in a new issue