mirror of
https://github.com/zama-ai/concrete.git
synced 2026-04-17 03:00:54 -04:00
chore(python): add namespace init file
This commit is contained in:
@@ -16,7 +16,8 @@ do
|
||||
// information.") || print_and_exit $file
|
||||
done
|
||||
|
||||
files=$(find ./compiler/{include,lib,src} -iregex '^.*\.\(py\)$')
|
||||
# Ignore python package namespace init file
|
||||
files=$(find ./compiler/{include,lib,src} -iregex '^.*\.\(py\)$' ! -path ./compiler/lib/Bindings/Python/concrete/__init__.py)
|
||||
|
||||
for file in $files
|
||||
do
|
||||
|
||||
@@ -28,6 +28,7 @@ declare_mlir_python_sources(ConcretelangBindingsPythonSources
|
||||
SOURCES
|
||||
concrete/compiler.py
|
||||
concrete/version.py
|
||||
concrete/__init__.py
|
||||
concrete/lang/__init__.py
|
||||
concrete/lang/dialects/__init__.py
|
||||
concrete/lang/dialects/_ods_common.py)
|
||||
|
||||
1
compiler/lib/Bindings/Python/concrete/__init__.py
Normal file
1
compiler/lib/Bindings/Python/concrete/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
__import__('pkg_resources').declare_namespace(__name__)
|
||||
@@ -64,7 +64,7 @@ setuptools.setup(
|
||||
where=build_dir() + "tools/concretelang/python_packages/concretelang_core",
|
||||
include=["mlir", "mlir.*"],
|
||||
),
|
||||
install_requires=["numpy", "PyYAML"],
|
||||
install_requires=["numpy", "PyYAML", "setuptools"],
|
||||
package_dir={"": build_dir() + "tools/concretelang/python_packages/concretelang_core"},
|
||||
include_package_data=True,
|
||||
package_data={"": ["*.so", "*.dylib"]},
|
||||
|
||||
Reference in New Issue
Block a user