Skip to content

Commit 0e79045

Browse files
committed
BUILD Fix package finding, requires that setuptools (only) be used
1 parent d631c6e commit 0e79045

File tree

4 files changed

+3
-35
lines changed

4 files changed

+3
-35
lines changed

accelerate/setup.py

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
11
#!/usr/bin/env python
22
"""Builds accelleration functions for PyOpenGL
33
"""
4-
54
import sys
6-
7-
if sys.version_info[:2] < (3, 12):
8-
from setuptools import setup, Extension
9-
else:
10-
from distutils.core import setup, Extension
5+
from setuptools import setup, Extension
116

127
try:
138
from Cython.Distutils import build_ext

pyproject.toml

+1-2
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,9 @@ version = {attr = "OpenGL.version.__version__"}
4444

4545
[tool.setuptools.packages.find]
4646
namespaces=false
47-
include=["OpenGL"]
47+
include=["OpenGL*"]
4848
exclude=["tests","accelerate","directdocs","documentation"]
4949

50-
5150
[tool.black]
5251
skip-string-normalization=true
5352

setup.cfg

-26
This file was deleted.

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#! /usr/bin/env python
22
"""PyOpenGL setup script distutils/setuptools/pip based"""
33
import sys, os
4-
from distutils.core import setup
54
from distutils.command.install_data import install_data
5+
from setuptools import setup
66

77
extra_commands = {}
88

0 commit comments

Comments
 (0)