-
Notifications
You must be signed in to change notification settings - Fork 24
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
Set up versions with last digit a pyerfa fix number. #30
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
setup.py
Outdated
|
||
ERFA_SRC = os.path.abspath(os.path.join(ERFAPKGDIR, 'liberfa', 'erfa', 'src')) | ||
LIBERFADIR = os.path.abspath(os.path.join(ERFAPKGDIR, 'liberfa', 'erfa')) | ||
ERFA_SRC = os.path.abspath(os.path.join(LIBERFADIR, 'src')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please consider to adjust the above lines to avoid absolute paths (see also #29).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please also:
ERFA_SRC = os.path.abspath(os.path.join(LIBERFADIR, 'src'))
should become
ERFA_SRC = os.path.join(LIBERFADIR, 'src')
Also the Extension
object seems to injects paths into the egg-info/SOURCES.txt
I'm still not sure about the version number, but will continue that discussion in #7. |
|
||
|
||
# https://mail.python.org/pipermail/distutils-sig/2007-September/008253.html | ||
class NumpyExtension(setuptools.Extension): | ||
"""Extension type that adds the NumPy include directory to include_dirs.""" | ||
|
||
def __init__(self, *args, **kwargs): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed this as we do not use cython so it seemed meaningless.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
|
||
|
||
# https://mail.python.org/pipermail/distutils-sig/2007-September/008253.html | ||
class NumpyExtension(setuptools.Extension): | ||
"""Extension type that adds the NumPy include directory to include_dirs.""" | ||
|
||
def __init__(self, *args, **kwargs): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
OK, let's get this in. With #33 I think we'll be ready for a release! |
My attempt at the four-digit version number. Still not sure I actually like it all that much, since the way things are set up, the python wrappers are fairly erfa-version agnostic.
Also note the hack in the tests to work around the fact that in our self-compilation we get the wrong erfa version number (see liberfa/erfa#62)