Skip to content

Commit

Permalink
setup: restore Build class
Browse files Browse the repository at this point in the history
  • Loading branch information
YoSTEALTH committed Apr 6, 2024
1 parent 4dcf87b commit 425db3c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Liburing is Python + Cython wrapper around `C Liburing`_, which is a helper to s

Good(old) documentation `Lord of the io_uring`_

Check out `Shakti`_, it uses ``liburing`` and provides an easy to use Python ``async`` ``await`` Interface.
Check out `Shakti`_. It uses ``liburing`` and provides an easy to use Python ``async`` ``await`` Interface.


Requires
Expand Down
12 changes: 6 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from tempfile import TemporaryDirectory
from subprocess import run as sub_process_run
from setuptools import setup
# from setuptools.command.build import build
from setuptools.command.build import build
from Cython.Build import cythonize
from Cython.Compiler import Options
from Cython.Distutils import Extension
Expand All @@ -18,10 +18,10 @@
Options.warning_errors = False


# class Build(build):
# def initialize_options(self):
# super().initialize_options()
# self.parallel = threads # manually set
class Build(build):
def initialize_options(self):
super().initialize_options()
self.parallel = threads # manually set


with TemporaryDirectory() as tmpdir:
Expand Down Expand Up @@ -54,7 +54,7 @@
# replace `include` placeholder files with actual content.
copytree(libinc, 'src/liburing/include', dirs_exist_ok=True)
# install
setup( # cmdclass={'build': Build},
setup(cmdclass={'build': Build},
ext_modules=cythonize(extension,
nthreads=threads,
compiler_directives={
Expand Down
2 changes: 1 addition & 1 deletion src/liburing/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from dynamic_import import importer


__version__ = '2024.4.4'
__version__ = '2024.4.5'

importer(cache=True, exclude_dir=['lib', 'include'])
# - `importer()` helps this project manage all import needs. It auto scans for
Expand Down

0 comments on commit 425db3c

Please sign in to comment.