Skip to content

Commit 297ce0a

Browse files
committed
cleanup
1 parent 0b4849f commit 297ce0a

File tree

5 files changed

+0
-136
lines changed

5 files changed

+0
-136
lines changed

requirements-build-3_11.txt

Lines changed: 0 additions & 2 deletions
This file was deleted.

requirements-build-3_12.txt

Lines changed: 0 additions & 2 deletions
This file was deleted.

requirements-build-3_13.txt

Lines changed: 0 additions & 2 deletions
This file was deleted.

requirements-build-3_14.txt

Lines changed: 0 additions & 2 deletions
This file was deleted.

setup.py

Lines changed: 0 additions & 128 deletions
Original file line numberDiff line numberDiff line change
@@ -12,30 +12,6 @@ def get_ext_dir(*components: tp.Iterable[str]) -> tp.Sequence[str]:
1212
dirs.append(fp)
1313
return dirs
1414

15-
# subclass build_ext to append NumPy's include path at build time
16-
# class build_ext_numpy(build_ext):
17-
# def finalize_options(self):
18-
# super().finalize_options()
19-
# import numpy # available thanks to [build-system].requires
20-
# self.include_dirs.append(numpy.get_include())
21-
22-
# # If (and only if) you truly need to link npymath, try to discover it.
23-
# # Many extensions don't need this anymore. Safe to remove if unused.
24-
# try:
25-
# import os
26-
# import numpy.core as npcore
27-
# get_lib = getattr(npcore, "get_lib", None)
28-
# if callable(get_lib):
29-
# libdir = get_lib()
30-
# if libdir and os.path.isdir(libdir):
31-
# self.library_dirs.append(libdir)
32-
# # add once
33-
# libs = set(self.libraries or [])
34-
# if "npymath" not in libs:
35-
# self.libraries = list(libs | {"npymath"})
36-
# except Exception:
37-
# pass
38-
3915
ext_modules = [
4016
Extension(
4117
name="arraykit._arraykit",
@@ -57,109 +33,5 @@ def get_ext_dir(*components: tp.Iterable[str]) -> tp.Sequence[str]:
5733
)
5834
]
5935

60-
6136
setup(ext_modules=ext_modules)
6237

63-
64-
# no metadata here—keep that in pyproject.toml
65-
# setup(ext_modules=ext_modules, cmdclass={"build_ext": build_ext_numpy})
66-
67-
68-
69-
70-
# import site
71-
# import os
72-
# from os import path
73-
# import typing as tp
74-
# from setuptools import Extension # type: ignore
75-
# from setuptools import setup
76-
77-
# AK_VERSION = '1.2.0'
78-
79-
# ROOT_DIR_FP = path.abspath(path.dirname(__file__))
80-
81-
# def get_long_description() -> str:
82-
# with open(path.join(ROOT_DIR_FP, 'README.rst'), encoding='utf-8') as f:
83-
# msg = []
84-
# collect = False
85-
# start = -1
86-
# for i, line in enumerate(f):
87-
# if line.startswith('arraykit'):
88-
# start = i + 2 # skip this line and the next
89-
# if i == start:
90-
# collect = True
91-
# if collect:
92-
# msg.append(line)
93-
# return ''.join(msg).strip()
94-
95-
96-
# # NOTE: we do this to avoid importing numpy: https://stackoverflow.com/questions/54117786/add-numpy-get-include-argument-to-setuptools-without-preinstalled-numpy
97-
# # we used to import the following to get directories:
98-
# # from numpy.distutils.misc_util import get_info
99-
# # import numpy as np # type: ignore
100-
# # get_info('npymath')['library_dirs']
101-
# # get_info('npymath')['libraries']
102-
103-
# def get_ext_dir(*components: tp.Iterable[str]) -> tp.Sequence[str]:
104-
# dirs = []
105-
# for sp in site.getsitepackages():
106-
# fp = os.path.join(sp, *components)
107-
# if os.path.exists(fp):
108-
# dirs.append(fp)
109-
# return dirs
110-
111-
# ak_extension = Extension(
112-
# name='arraykit._arraykit', # build into module
113-
# sources=[
114-
# 'src/_arraykit.c',
115-
# 'src/array_go.c',
116-
# 'src/array_to_tuple.c',
117-
# 'src/block_index.c',
118-
# 'src/delimited_to_arrays.c',
119-
# 'src/methods.c',
120-
# 'src/tri_map.c',
121-
# 'src/auto_map.c',
122-
# ],
123-
# include_dirs=get_ext_dir('numpy', '_core', 'include') + ['src'],
124-
# library_dirs=get_ext_dir('numpy', '_core', 'lib'),
125-
# define_macros=[("AK_VERSION", AK_VERSION)],
126-
# libraries=['npymath'], # not including mlib at this time
127-
# )
128-
129-
# setup(
130-
# name='arraykit',
131-
# version=AK_VERSION,
132-
# description='Array utilities for StaticFrame',
133-
# long_description=get_long_description(),
134-
# long_description_content_type='text/x-rst', # use text/x-rst
135-
# python_requires='>=3.10',
136-
# install_requires=['numpy>=1.24.3'],
137-
# url='https://github.com/static-frame/arraykit',
138-
# author='Christopher Ariza, Brandt Bucher, Charles Burkland',
139-
# license='MIT',
140-
# # See https://pypi.python.org/pypi?%3Aaction=list_classifiers
141-
# classifiers=[
142-
# 'Development Status :: 5 - Production/Stable',
143-
# 'Intended Audience :: Developers',
144-
# 'Topic :: Software Development',
145-
# "Programming Language :: C",
146-
# "Programming Language :: Python :: Implementation :: CPython",
147-
# 'License :: OSI Approved :: MIT License',
148-
# 'Operating System :: MacOS :: MacOS X',
149-
# 'Operating System :: Microsoft :: Windows',
150-
# 'Operating System :: POSIX',
151-
# 'Programming Language :: Python :: 3.10',
152-
# 'Programming Language :: Python :: 3.11',
153-
# 'Programming Language :: Python :: 3.12',
154-
# 'Programming Language :: Python :: 3.13',
155-
# 'Programming Language :: Python :: 3.14',
156-
# 'Programming Language :: Python :: Free Threading',
157-
# 'Typing :: Typed',
158-
# ],
159-
# keywords='numpy array',
160-
# packages=['arraykit'],
161-
# package_dir={'arraykit': 'src'},
162-
# package_data={'arraykit': ['__init__.pyi', 'py.typed']},
163-
# include_package_data=True,
164-
# ext_modules=[ak_extension],
165-
# )

0 commit comments

Comments
 (0)