Repository navigation
MNT: Run PTH flake test in prep for supporting pathlib (table) #16939
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think something in here broke "exotic archs", see #16940 (comment)
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Quick guess: is this from an arch were setuptools 72.2.0 and newer aren't available yet ?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does that mean we need to revert this PR?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yup, I'm seeing version 68.1.2. Let me revert this bit !
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. #16942 👀 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,22 +1,23 @@ | ||
| # Licensed under a 3-clause BSD style license - see LICENSE.rst | ||
|
|
||
| import os | ||
|
|
||
| from pathlib import Path | ||
|
|
||
| from numpy import get_include as get_numpy_include | ||
| from setuptools import Extension | ||
|
|
||
| ROOT = os.path.relpath(os.path.dirname(__file__)) | ||
| ROOT = Path(__file__).parent.relative_to(Path.cwd()) | ||
|
|
||
|
|
||
| def get_extensions(): | ||
| sources = ["_np_utils.pyx", "_column_mixins.pyx"] | ||
| sources = [ROOT / "_np_utils.pyx", ROOT / "_column_mixins.pyx"] | ||
| include_dirs = [get_numpy_include()] | ||
|
|
||
| exts = [ | ||
| Extension( | ||
| name="astropy.table." + os.path.splitext(source)[0], | ||
| name=f"astropy.table.{source.stem}", | ||
| define_macros=[("NPY_NO_DEPRECATED_API", "NPY_1_7_API_VERSION")], | ||
| sources=[os.path.join(ROOT, source)], | ||
| sources=sources, | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is it known that
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's been supported by setuptools since version 72.2.0, which is why I set an explicit minimum requirement. |
||
| include_dirs=include_dirs, | ||
| ) | ||
| for source in sources | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.