Skip to content
Snippets Groups Projects
Commit dfc578f7 authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

0.5 - prints removed

parent 8dd26035
No related branches found
No related tags found
No related merge requests found
from .build import build from .build import build
from .multibuild import Multibuild from .multibuild import Multibuild
__version__ = '0.4' __version__ = '0.5'
...@@ -12,7 +12,6 @@ class Multibuild: ...@@ -12,7 +12,6 @@ class Multibuild:
def __init__(self, extension_name: str, files: tp.Iterable[str]): def __init__(self, extension_name: str, files: tp.Iterable[str]):
self.files = list([file for file in files if not file.endswith('__bootstrap__.pyx')]) self.files = list([file for file in files if not file.endswith('__bootstrap__.pyx')])
file_name_set = set(os.path.split(file)[1] for file in self.files) file_name_set = set(os.path.split(file)[1] for file in self.files)
print(self.files)
if len(self.files) != len(file_name_set): if len(self.files) != len(file_name_set):
raise ValueError('Two modules with the same name cannot appear together in a single ' raise ValueError('Two modules with the same name cannot appear together in a single '
'Multibuild') 'Multibuild')
...@@ -111,11 +110,9 @@ cdef class CythonPackageLoader: ...@@ -111,11 +110,9 @@ cdef class CythonPackageLoader:
def create_module(self, spec): def create_module(self, spec):
if spec.name != self.name: if spec.name != self.name:
raise ImportError() raise ImportError()
print('Before FromDefAndSpec')
return PyModule_FromDefAndSpec(self.definition, spec) return PyModule_FromDefAndSpec(self.definition, spec)
def exec_module(self, module): def exec_module(self, module):
print('Before execmodule')
PyModule_ExecDef(module, self.definition) PyModule_ExecDef(module, self.definition)
...@@ -140,7 +137,6 @@ def bootstrap_cython_submodules(): ...@@ -140,7 +137,6 @@ def bootstrap_cython_submodules():
return ''.join(bootstrap_contents) return ''.join(bootstrap_contents)
def write_bootstrap_file(self): def write_bootstrap_file(self):
print('Writing to ', os.path.join(self.bootstrap_directory, '__bootstrap__.pyx'))
with open(os.path.join(self.bootstrap_directory, '__bootstrap__.pyx'), 'w') as f_out: with open(os.path.join(self.bootstrap_directory, '__bootstrap__.pyx'), 'w') as f_out:
f_out.write(self.generate_bootstrap()) f_out.write(self.generate_bootstrap())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment