mirror of
https://github.com/zama-ai/concrete.git
synced 2026-04-17 03:00:54 -04:00
fix(frontend/python): set extension modules in setup.py
This commit is contained in:
@@ -2,6 +2,9 @@ import os
|
||||
import re
|
||||
import setuptools
|
||||
|
||||
from setuptools import Extension
|
||||
from setuptools.command.build_ext import build_ext
|
||||
|
||||
|
||||
def read(file):
|
||||
return open(os.path.join(os.path.dirname(__file__), file)).read()
|
||||
@@ -18,6 +21,16 @@ def bindings_directory():
|
||||
return os.path.relpath(path) + "/tools/concretelang/python_packages/concretelang_core"
|
||||
|
||||
|
||||
class MakeExtension(Extension):
|
||||
def __init__(self, name):
|
||||
Extension.__init__(self, name, sources=[])
|
||||
|
||||
|
||||
class MakeBuild(build_ext):
|
||||
def run(self):
|
||||
pass
|
||||
|
||||
|
||||
setuptools.setup(
|
||||
|
||||
name="concrete-python",
|
||||
@@ -89,6 +102,8 @@ setuptools.setup(
|
||||
include_package_data=True,
|
||||
package_data={"": ["*.so", "*.dylib"]},
|
||||
|
||||
ext_modules=[MakeExtension("python-bindings")],
|
||||
cmdclass=dict(build_ext=MakeBuild),
|
||||
zip_safe=False,
|
||||
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user