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

chore: Remove unused Python setup files from old workflows #1656

Merged

Conversation

matthewfeickert
Copy link
Contributor

@matthewfeickert matthewfeickert commented Mar 16, 2022

Resolves #1594

  • Remove bindings/python/setup_pypi.py as it is Python 2 only and no longer being used in any workflows for installation of the Python bindings.
    • Remove dopy.sh as well as it only exists as setup_pypi.py does.
  • Remove bindings/python/setup_standalone.py as it is no longer used as one can effectively replace all of its functionality with python -m pip install --upgrade xrootd.

@matthewfeickert
Copy link
Contributor Author

@simonmichal This PR is ready for review given Nick's sign off in #1594 (comment).

* Remove bindings/python/setup_pypi.py as it is Python 2 only and no
longer being used in any workflows for installation of the Python bindings.
c.f. Issue 1594 for more information.
* Remove dopy.sh as well as it only exists as setup_pypi.py does.
* Remove bindings/python/setup_standalone.py as it is no longer used as
one can effectively replace all of its functionality with
`python -m pip install --upgrade xrootd`.
c.f. Issue 1594 for more information.
@adriansev
Copy link
Contributor

@matthewfeickert i'm not sure if the following have anything to do (in the future) with this PR, but using a tag like v5.4.2-alice1 lead to have in the installation output the following:

2022-03-18@20:37:29:DEBUG:xjalienfs:XRootD:xjalienfs: Processing ./bindings/python
2022-03-18@20:37:29:DEBUG:xjalienfs:XRootD:xjalienfs:   Preparing metadata (setup.py): started
2022-03-18@20:37:30:DEBUG:xjalienfs:XRootD:xjalienfs:   Preparing metadata (setup.py): finished with status 'done'
2022-03-18@20:37:30:DEBUG:xjalienfs:XRootD:xjalienfs: Building wheels for collected packages: xrootd
2022-03-18@20:37:30:DEBUG:xjalienfs:XRootD:xjalienfs:   Building wheel for xrootd (setup.py): started
2022-03-18@20:37:45:DEBUG:xjalienfs:XRootD:xjalienfs:   Building wheel for xrootd (setup.py): finished with status 'done'
2022-03-18@20:37:45:DEBUG:xjalienfs:XRootD:xjalienfs:   Created wheel for xrootd: filename=xrootd-5.4.2.alice1-cp39-cp39-macosx_11_0_x86_64.whl size=116509 sha256=e6b02ad7771e3fc7152bd986d6d6da05b767743a93751006f3e097b586169485
2022-03-18@20:37:45:DEBUG:xjalienfs:XRootD:xjalienfs:   Stored in directory: /Users/asevcenc/alisw/xjalienfs/tmp/pip-ephem-wheel-cache-ip6a62d3/wheels/23/b1/eb/d9212dc46f10e96cf8facd5e8766a597b638202d45ccba45be
2022-03-18@20:37:45:DEBUG:xjalienfs:XRootD:xjalienfs:   WARNING: Built wheel for xrootd is invalid: Metadata 1.2 mandates PEP 440 version, but '5.4.2.alice1' is not
2022-03-18@20:37:45:DEBUG:xjalienfs:XRootD:xjalienfs: Failed to build xrootd
2022-03-18@20:37:45:DEBUG:xjalienfs:XRootD:xjalienfs: Installing collected packages: xrootd
2022-03-18@20:37:45:DEBUG:xjalienfs:XRootD:xjalienfs:   Running setup.py install for xrootd: started
2022-03-18@20:37:46:DEBUG:xjalienfs:XRootD:xjalienfs:   Running setup.py install for xrootd: finished with status 'done'
2022-03-18@20:37:46:DEBUG:xjalienfs:XRootD:xjalienfs:   DEPRECATION: xrootd was installed using the legacy 'setup.py install' method, because a wheel could not be built for it. A possible replacement is to fix the wheel build issue reported above. Discussion can be found at https://github.com/pypa/pip/issues/8368
2022-03-18@20:37:46:DEBUG:xjalienfs:XRootD:xjalienfs: Successfully installed xrootd-5.4.2.alice1

is there anything to worry about the future?
Thanks a lot!

@matthewfeickert
Copy link
Contributor Author

matthewfeickert commented Mar 18, 2022

... but using a tag like v5.4.2-alice1 lead to have in the installation output the following:

2022-03-18@20:37:29:DEBUG:xjalienfs:XRootD:xjalienfs: Processing ./bindings/python
2022-03-18@20:37:29:DEBUG:xjalienfs:XRootD:xjalienfs:   Preparing metadata (setup.py): started
2022-03-18@20:37:30:DEBUG:xjalienfs:XRootD:xjalienfs:   Preparing metadata (setup.py): finished with status 'done'
2022-03-18@20:37:30:DEBUG:xjalienfs:XRootD:xjalienfs: Building wheels for collected packages: xrootd
2022-03-18@20:37:30:DEBUG:xjalienfs:XRootD:xjalienfs:   Building wheel for xrootd (setup.py): started
2022-03-18@20:37:45:DEBUG:xjalienfs:XRootD:xjalienfs:   Building wheel for xrootd (setup.py): finished with status 'done'
2022-03-18@20:37:45:DEBUG:xjalienfs:XRootD:xjalienfs:   Created wheel for xrootd: filename=xrootd-5.4.2.alice1-cp39-cp39-macosx_11_0_x86_64.whl size=116509 sha256=e6b02ad7771e3fc7152bd986d6d6da05b767743a93751006f3e097b586169485
2022-03-18@20:37:45:DEBUG:xjalienfs:XRootD:xjalienfs:   Stored in directory: /Users/asevcenc/alisw/xjalienfs/tmp/pip-ephem-wheel-cache-ip6a62d3/wheels/23/b1/eb/d9212dc46f10e96cf8facd5e8766a597b638202d45ccba45be
2022-03-18@20:37:45:DEBUG:xjalienfs:XRootD:xjalienfs:   WARNING: Built wheel for xrootd is invalid: Metadata 1.2 mandates PEP 440 version, but '5.4.2.alice1' is not
2022-03-18@20:37:45:DEBUG:xjalienfs:XRootD:xjalienfs: Failed to build xrootd
2022-03-18@20:37:45:DEBUG:xjalienfs:XRootD:xjalienfs: Installing collected packages: xrootd
2022-03-18@20:37:45:DEBUG:xjalienfs:XRootD:xjalienfs:   Running setup.py install for xrootd: started
2022-03-18@20:37:46:DEBUG:xjalienfs:XRootD:xjalienfs:   Running setup.py install for xrootd: finished with status 'done'
2022-03-18@20:37:46:DEBUG:xjalienfs:XRootD:xjalienfs:   DEPRECATION: xrootd was installed using the legacy 'setup.py install' method, because a wheel could not be built for it. A possible replacement is to fix the wheel build issue reported above. Discussion can be found at https://github.com/pypa/pip/issues/8368
2022-03-18@20:37:46:DEBUG:xjalienfs:XRootD:xjalienfs: Successfully installed xrootd-5.4.2.alice1

is there anything to worry about the future? Thanks a lot!

@adriansev My assumption is that the installed xrootd-5.4.2.alice1 still works fine, correct? If so, then I don't think there's anything to worry about as it is simply pip enforcing PEP 440. c.f. #1605 for more details, but an example of what I mean (also shown there) is

from pip._vendor.packaging.version import Version

Version("5.4.2")  # <Version('5.4.2')>
Version("5.4.3rc1")  # <Version('5.4.3rc1')>
Version("5.4.2.alice1")  # pip._vendor.packaging.version.InvalidVersion: Invalid version: '5.4.2.alice1'

and my assumption is that this is happening to you on a fork that you have where you've made this tag as the existing publish.sh workflow calls genversion.sh

./genversion.sh
version=$(./genversion.sh --print-only)
version=${version#v}
echo $version > bindings/python/VERSION

which uses tags to set version info (I learned how the existing system XRootD uses works only by making PRs like #1585, so I don't think that any of this should be obvious).

This PR should be totally unrelated from any of the above though, as none of the files being removed here participate in the build or the install (so you should be able to get the same warning on master with your tag).

@simonmichal simonmichal merged commit 279b0d3 into xrootd:master Mar 22, 2022
@matthewfeickert matthewfeickert deleted the chore/remove-old-python-files branch March 22, 2022 14:27
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.

Remove obsolete files setup_pypi.py and setup_standalone.py
3 participants