Skip to content

Commit

Permalink
Check
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexAUtkin authored Aug 7, 2024
1 parent 520a31b commit f794982
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import os
import sys
from multiprocessing import cpu_count

from setuptools import setup, Extension
from setuptools.command.build_ext import build_ext as build_ext_orig
Expand All @@ -10,12 +9,13 @@

PACKAGE_NAME = 'pyreindexer'


class CMakeExtension(Extension):
def __init__(self, name):
super().__init__(name, sources=[])


class build_ext(build_ext_orig):
class BuildExt(build_ext_orig):
def run(self):
for ext in self.extensions:
self.build_cmake(ext)
Expand Down Expand Up @@ -58,7 +58,7 @@ def build_cmake(self, ext):
license='Apache License 2.0',
packages=[PACKAGE_NAME],
ext_modules=[CMakeExtension('rawpyreindexer')],
cmdclass={'build_ext': build_ext},
cmdclass={'build_ext': BuildExt},
package_data={'pyreindexer': [
'CMakeLists.txt',
'lib/include/pyobjtools.h',
Expand Down

0 comments on commit f794982

Please sign in to comment.