Skip to content
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

Update location of sybpydb for prime Python 3.10 #22

Merged
merged 1 commit into from
Jan 20, 2023
Merged

Update location of sybpydb for prime Python 3.10 #22

merged 1 commit into from
Jan 20, 2023

Conversation

jeanconn
Copy link
Contributor

@jeanconn jeanconn commented Jan 12, 2023

Description

Update location of sybpydb to support new release (requires Python >= 3.9).

Fixes #

Interface impacts

Testing

Unit tests run in an early build of ska3-prime / ska3-core with confirmed Python 3.10.8 .

Unit tests

  • Linux

Functional tests

No functional testing.

@jeanconn jeanconn changed the title Update Python lib dir for new libraries Update location of sybpydb Jan 12, 2023
@@ -91,7 +91,7 @@ def __init__(self, dbi=None, server=None, user=None, passwd=None, database=None,
raise ValueError(
'SYBASE_OCS env variable not defined. sybase dbi works only in production ska.')
modulepath = os.path.join(os.environ['SYBASE'], os.environ['SYBASE_OCS'],
'python', 'python34_64r', 'lib')
'python', 'python39_64r', 'lib')
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For this, I could do something to check the python version and then select the right directory, but I figured we didn't need updates to this to be back-compatible with older Python versions.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds fine.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we would want it to be compatible with the current version, right? Will this PR work with the current flight version?

Copy link
Contributor Author

@jeanconn jeanconn Jan 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we necessarily need it to be compatible with the current python version, as we don't do "mixed' environments (ska3-flight for Python 3.10.8 won't have an option to work with a different/older ska3-core) and we can control this by just promoting this change with ska3-prime. If we are actually worried about it, I can add the logic.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think @jeanconn is proposing that this PR be included only in the ska3-prime release. We generally don't require those packages to be back-compatible with earlier Python versions.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, but as soon as this is merged masters tests will be broken until we have a ska3-prime release.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. Along those lines though, does it make sense to update masters testing to work from a ska3 prime candidate after 2022.13 is promoted anyway?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose we should.

@jeanconn jeanconn changed the title Update location of sybpydb WIP: Update location of sybpydb for prime Python 3.10 Jan 12, 2023
@jeanconn jeanconn changed the title WIP: Update location of sybpydb for prime Python 3.10 Update location of sybpydb for prime Python 3.10 Jan 20, 2023
Copy link
Member

@taldcroft taldcroft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@jeanconn jeanconn merged commit ed1c81b into master Jan 20, 2023
@jeanconn jeanconn deleted the prime branch January 20, 2023 19:51
@javierggt javierggt mentioned this pull request Mar 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants