Skip to content

Commit

Permalink
use setuptools instead
Browse files Browse the repository at this point in the history
  • Loading branch information
aktech committed Oct 2, 2023
1 parent b62baa9 commit 4bc997d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
7 changes: 7 additions & 0 deletions python_c_extension/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"

[project]
name = "gil_talk"
version = "0.2"
20 changes: 12 additions & 8 deletions python_c_extension/setup.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
from distutils.core import setup, Extension
from setuptools import Extension, setup

ext_module = Extension('extension_module',
sources=['python_c_extension/extension_module.c'])

setup(name='Extension Module',
version='1.0',
description='Python C Extension module',
ext_modules=[ext_module])
setup(
name='Extension Module',
version="0.2",
description='Python C Extension module',
ext_modules=[
Extension(
name="extension_module",
sources=["python_c_extension/extension_module.c"],
),
]
)

0 comments on commit 4bc997d

Please sign in to comment.