Package Details: python-exscript 2.6.30-2

Git Clone URL: https://aur.archlinux.org/python-exscript.git (read-only, click to copy)
Package Base: python-exscript
Description: A Python module making Telnet and SSH easy
Upstream URL: https://github.com/knipknap/exscript
Keywords: python ssh telnet
Licenses: MIT
Submitter: SelfRef
Maintainer: SelfRef
Last Packager: SelfRef
Votes: 0
Popularity: 0.000000
First Submitted: 2023-07-22 09:21 (UTC)
Last Updated: 2023-12-20 13:33 (UTC)

Latest Comments

SelfRef commented on 2023-12-24 16:07 (UTC)

@dreieck I know, my response here: https://aur.archlinux.org/packages/python-exscript-git#comment-949220

dreieck commented on 2023-12-20 16:22 (UTC)

You should move away from calling setup.py and use python -m build, python -m installer together with the appropriate makedependencies instead (see Arch Linux wiki on python packages):

==> Starting build()...
/usr/lib/python3.11/site-packages/setuptools/dist.py:472: SetuptoolsDeprecationWarning: Invalid dash-separated options
!!

        ********************************************************************************
        Usage of dash-separated 'description-file' will not be supported in future
        versions. Please use the underscore name 'description_file' instead.

        By 2024-Sep-26, you need to update your project and remove deprecated calls
        or your builds will no longer be supported.

        See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
        ********************************************************************************

!!
  opt = self.warn_dash_deprecation(opt, section)
[...]
==> Starting package()...
/usr/lib/python3.11/site-packages/setuptools/dist.py:472: SetuptoolsDeprecationWarning: Invalid dash-separated options
!!

        ********************************************************************************
        Usage of dash-separated 'description-file' will not be supported in future
        versions. Please use the underscore name 'description_file' instead.

        By 2024-Sep-26, you need to update your project and remove deprecated calls
        or your builds will no longer be supported.

        See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
        ********************************************************************************

!!
  opt = self.warn_dash_deprecation(opt, section)
running install
/usr/lib/python3.11/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!

        ********************************************************************************
        Please avoid running ``setup.py`` directly.
        Instead, use pypa/build, pypa/installer or other
        standards-based tools.

        See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
        ********************************************************************************

!!
  self.initialize_options()
[...]

Regards and thanks for the package!

SelfRef commented on 2023-12-20 13:34 (UTC)

@taotieren Fixed

taotieren commented on 2023-12-20 12:46 (UTC) (edited on 2023-12-20 12:47 (UTC) by taotieren)

Python_package_guidelines Missing compilation dependency python-setuptools.

I use extra from the devtools package for compilation. thank you

==> Retrieving sources...
==> WARNING: Skipping all source file integrity checks.
==> Extracting sources...
  -> Creating working copy of exscript git repo...
Cloning into 'exscript'...
done.
Switched to a new branch 'makepkg'
==> Starting build()...
Traceback (most recent call last):
  File "/build/python-exscript/src/exscript/setup.py", line 3, in <module>
    from setuptools import setup, find_packages
ModuleNotFoundError: No module named 'setuptools'
==> ERROR: A failure occurred in build().
    Aborting...
==> ERROR: Build failed, check /var/lib/archbuild/extra-x86_64/lilac-5/build

SelfRef commented on 2023-12-16 15:22 (UTC) (edited on 2023-12-16 15:25 (UTC) by SelfRef)

@taotieren Thanks for the comment. My build script was based on official author's instruction to keep maximum compatibility because it uses Makefile and run some commands.

I've updated my PKGBUILD to be consistent with Arch Wiki, please check if it works now for you.

Also, because the author doesn't create a typical GitHub releases for a long time, I also added -git version to be always updated: python-exscript-git.

taotieren commented on 2023-12-16 12:33 (UTC)

Hi, I'm using devtool tool to compile this package and it gives me the following error, can you please update this package according to the official python package? Thank you very much.

https://wiki.archlinux.org/title/Python_package_guidelines

==> Retrieving sources...
==> WARNING: Skipping all source file integrity checks.
==> Extracting sources...
  -> Creating working copy of exscript git repo...
Cloning into 'exscript'...
done.
Switched to a new branch 'makepkg'
==> Entering fakeroot environment...
==> Starting package()...
mkdir -p /build/python-exscript/pkg/python-exscript/usr`python -c "from __future__ import print_function; import sys; from distutils.sysconfig import get_python_lib; print(get_python_lib()[len(sys.prefix):])"`
<string>:1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
<string>:1: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead
./version.sh
Version is 2.6.28
Files /tmp/tmp.qlqhSJzXd9 and Exscript/version.py differ
Version file updated.
export PYTHONPATH=/build/python-exscript/pkg/python-exscript/usr`python -c "from __future__ import print_function; import sys; from distutils.sysconfig import get_python_lib; print(get_python_lib()[len(sys.prefix):])"`:; \
python setup.py install --prefix /build/python-exscript/pkg/python-exscript/usr \
                        --install-scripts /build/python-exscript/pkg/python-exscript/usr/bin \
                        --install-lib /build/python-exscript/pkg/python-exscript/usr`python -c "from __future__ import print_function; import sys; from distutils.sysconfig import get_python_lib; print(get_python_lib()[len(sys.prefix):])"`
<string>:1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
<string>:1: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead
<string>:1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
<string>:1: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead
Traceback (most recent call last):
  File "/build/python-exscript/src/exscript/setup.py", line 3, in <module>
    from setuptools import setup, find_packages
ModuleNotFoundError: No module named 'setuptools'
make: *** [Makefile:27: install] Error 1
==> ERROR: A failure occurred in package().
    Aborting...
==> ERROR: Build failed, check /var/lib/archbuild/extra-x86_64/lilac-4/build
[E 12-16 20:22:27.624 worker:256] build failed