Skip to content

Commit

Permalink
BUILD Fix package finding, requires that setuptools (only) be used
Browse files Browse the repository at this point in the history
  • Loading branch information
mcfletch committed Jan 2, 2025
1 parent d631c6e commit 0e79045
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 35 deletions.
7 changes: 1 addition & 6 deletions accelerate/setup.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
#!/usr/bin/env python
"""Builds accelleration functions for PyOpenGL
"""

import sys

if sys.version_info[:2] < (3, 12):
from setuptools import setup, Extension
else:
from distutils.core import setup, Extension
from setuptools import setup, Extension

try:
from Cython.Distutils import build_ext
Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,9 @@ version = {attr = "OpenGL.version.__version__"}

[tool.setuptools.packages.find]
namespaces=false
include=["OpenGL"]
include=["OpenGL*"]
exclude=["tests","accelerate","directdocs","documentation"]


[tool.black]
skip-string-normalization=true

Expand Down
26 changes: 0 additions & 26 deletions setup.cfg

This file was deleted.

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#! /usr/bin/env python
"""PyOpenGL setup script distutils/setuptools/pip based"""
import sys, os
from distutils.core import setup
from distutils.command.install_data import install_data
from setuptools import setup

extra_commands = {}

Expand Down

0 comments on commit 0e79045

Please sign in to comment.