anntzer / pypi2pkgbuild

A PyPI to PKGBUILD converter.
MIT License
71 stars 6 forks source link

pypi2pkgbuild not found in PATH after pacman/yay installation #24

Closed maximberezin97 closed 2 years ago

maximberezin97 commented 2 years ago

Environment

Behavior

After installing pypi2pkgbuild via package manager, the executables pypi2pkgbuild or pypi2pkgbuild.py are not in my PATH. Issue encountered at this step. Issue persists in every combination of tools listed in my environment.

Attempting to install simply with yay

yay -S pip2pkgbuild
Output ```bash :: Checking for conflicts... :: Checking for inner conflicts... [Aur:1] pip2pkgbuild-0.3.2-1 1 pip2pkgbuild (Installed) (Build Files Exist) ==> Packages to cleanBuild? ==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4) ==> a :: Deleting (1/1): /home/user/.cache/yay/pip2pkgbuild :: (1/1) Downloaded PKGBUILD: pip2pkgbuild 1 pip2pkgbuild (Installed) (Build Files Exist) ==> Diffs to show? ==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4) ==> n :: (1/1) Parsing SRCINFO: pip2pkgbuild ==> Making package: pip2pkgbuild 0.3.2-1 (Sat 19 Mar 2022 07:02:47 PM EDT) ==> Retrieving sources... -> Downloading pip2pkgbuild-0.3.2.tar.gz... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 10469 100 10469 0 0 149k 0 --:--:-- --:--:-- --:--:-- 149k ==> Validating source files with sha256sums... pip2pkgbuild-0.3.2.tar.gz ... Passed ==> Making package: pip2pkgbuild 0.3.2-1 (Sat 19 Mar 2022 07:02:48 PM EDT) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> Retrieving sources... -> Found pip2pkgbuild-0.3.2.tar.gz ==> Validating source files with sha256sums... pip2pkgbuild-0.3.2.tar.gz ... Passed ==> Removing existing $srcdir/ directory... ==> Extracting sources... -> Extracting pip2pkgbuild-0.3.2.tar.gz with bsdtar ==> Starting prepare()... ==> Sources are ready. ==> Making package: pip2pkgbuild 0.3.2-1 (Sat 19 Mar 2022 07:02:50 PM EDT) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> WARNING: Using existing $srcdir/ tree ==> Starting build()... /home/user/.cache/yay/pip2pkgbuild/src/pip2pkgbuild-0.3.2/setup.py:1: DeprecationWarning: the imp module is deprecated in favour of importlib and slated for removal in Python 3.12; see the module's documentation for alternative uses import imp running build running build_py creating build creating build/lib creating build/lib/pip2pkgbuild copying pip2pkgbuild/__init__.py -> build/lib/pip2pkgbuild copying pip2pkgbuild/__main__.py -> build/lib/pip2pkgbuild copying pip2pkgbuild/pip2pkgbuild.py -> build/lib/pip2pkgbuild running build running build_py creating build creating build/lib creating build/lib/pip2pkgbuild copying pip2pkgbuild/__init__.py -> build/lib/pip2pkgbuild copying pip2pkgbuild/__main__.py -> build/lib/pip2pkgbuild copying pip2pkgbuild/pip2pkgbuild.py -> build/lib/pip2pkgbuild ==> Entering fakeroot environment... ==> Starting package_pip2pkgbuild()... /home/user/.cache/yay/pip2pkgbuild/src/pip2pkgbuild-0.3.2/setup.py:1: DeprecationWarning: the imp module is deprecated in favour of importlib and slated for removal in Python 3.12; see the module's documentation for alternative uses import imp running install running install_lib creating /home/user/.cache/yay/pip2pkgbuild/pkg/pip2pkgbuild/home creating /home/user/.cache/yay/pip2pkgbuild/pkg/pip2pkgbuild/home/user creating /home/user/.cache/yay/pip2pkgbuild/pkg/pip2pkgbuild/home/user/.asdf creating /home/user/.cache/yay/pip2pkgbuild/pkg/pip2pkgbuild/home/user/.asdf/installs creating /home/user/.cache/yay/pip2pkgbuild/pkg/pip2pkgbuild/home/user/.asdf/installs/python creating /home/user/.cache/yay/pip2pkgbuild/pkg/pip2pkgbuild/home/user/.asdf/installs/python/3.10.3 creating /home/user/.cache/yay/pip2pkgbuild/pkg/pip2pkgbuild/home/user/.asdf/installs/python/3.10.3/lib creating /home/user/.cache/yay/pip2pkgbuild/pkg/pip2pkgbuild/home/user/.asdf/installs/python/3.10.3/lib/python3.10 creating /home/user/.cache/yay/pip2pkgbuild/pkg/pip2pkgbuild/home/user/.asdf/installs/python/3.10.3/lib/python3.10/site-packages creating /home/user/.cache/yay/pip2pkgbuild/pkg/pip2pkgbuild/home/user/.asdf/installs/python/3.10.3/lib/python3.10/site-packages/pip2pkgbuild copying build/lib/pip2pkgbuild/__init__.py -> /home/user/.cache/yay/pip2pkgbuild/pkg/pip2pkgbuild/home/user/.asdf/installs/python/3.10.3/lib/python3.10/site-packages/pip2pkgbuild copying build/lib/pip2pkgbuild/__main__.py -> /home/user/.cache/yay/pip2pkgbuild/pkg/pip2pkgbuild/home/user/.asdf/installs/python/3.10.3/lib/python3.10/site-packages/pip2pkgbuild copying build/lib/pip2pkgbuild/pip2pkgbuild.py -> /home/user/.cache/yay/pip2pkgbuild/pkg/pip2pkgbuild/home/user/.asdf/installs/python/3.10.3/lib/python3.10/site-packages/pip2pkgbuild byte-compiling /home/user/.cache/yay/pip2pkgbuild/pkg/pip2pkgbuild/home/user/.asdf/installs/python/3.10.3/lib/python3.10/site-packages/pip2pkgbuild/__init__.py to __init__.cpython-310.pyc byte-compiling /home/user/.cache/yay/pip2pkgbuild/pkg/pip2pkgbuild/home/user/.asdf/installs/python/3.10.3/lib/python3.10/site-packages/pip2pkgbuild/__main__.py to __main__.cpython-310.pyc byte-compiling /home/user/.cache/yay/pip2pkgbuild/pkg/pip2pkgbuild/home/user/.asdf/installs/python/3.10.3/lib/python3.10/site-packages/pip2pkgbuild/pip2pkgbuild.py to pip2pkgbuild.cpython-310.pyc writing byte-compilation script '/tmp/tmp_zh_13jt.py' /home/user/.asdf/installs/python/3.10.3/bin/python -Wignore:The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives:DeprecationWarning /tmp/tmp_zh_13jt.py removing /tmp/tmp_zh_13jt.py running install_egg_info running egg_info writing pip2pkgbuild.egg-info/PKG-INFO writing dependency_links to pip2pkgbuild.egg-info/dependency_links.txt writing entry points to pip2pkgbuild.egg-info/entry_points.txt writing top-level names to pip2pkgbuild.egg-info/top_level.txt reading manifest file 'pip2pkgbuild.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'pip2pkgbuild.egg-info/SOURCES.txt' Copying pip2pkgbuild.egg-info to /home/user/.cache/yay/pip2pkgbuild/pkg/pip2pkgbuild/home/user/.asdf/installs/python/3.10.3/lib/python3.10/site-packages/pip2pkgbuild-0.3.2-py3.10.egg-info running install_scripts Installing pip2pkgbuild script to /home/user/.cache/yay/pip2pkgbuild/pkg/pip2pkgbuild/home/user/.asdf/installs/python/3.10.3/bin ==> Tidying install... -> Removing libtool files... -> Purging unwanted files... -> Removing static library files... -> Stripping unneeded symbols from binaries and libraries... -> Compressing man and info pages... ==> Checking for packaging issues... ==> Creating package "pip2pkgbuild"... -> Generating .PKGINFO file... -> Generating .BUILDINFO file... -> Generating .MTREE file... -> Compressing package... ==> Starting package_python2-pip2pkgbuild()... running install running install_lib creating /home/user/.cache/yay/pip2pkgbuild/pkg/python2-pip2pkgbuild/usr creating /home/user/.cache/yay/pip2pkgbuild/pkg/python2-pip2pkgbuild/usr/lib creating /home/user/.cache/yay/pip2pkgbuild/pkg/python2-pip2pkgbuild/usr/lib/python2.7 creating /home/user/.cache/yay/pip2pkgbuild/pkg/python2-pip2pkgbuild/usr/lib/python2.7/site-packages creating /home/user/.cache/yay/pip2pkgbuild/pkg/python2-pip2pkgbuild/usr/lib/python2.7/site-packages/pip2pkgbuild copying build/lib/pip2pkgbuild/__init__.py -> /home/user/.cache/yay/pip2pkgbuild/pkg/python2-pip2pkgbuild/usr/lib/python2.7/site-packages/pip2pkgbuild copying build/lib/pip2pkgbuild/__main__.py -> /home/user/.cache/yay/pip2pkgbuild/pkg/python2-pip2pkgbuild/usr/lib/python2.7/site-packages/pip2pkgbuild copying build/lib/pip2pkgbuild/pip2pkgbuild.py -> /home/user/.cache/yay/pip2pkgbuild/pkg/python2-pip2pkgbuild/usr/lib/python2.7/site-packages/pip2pkgbuild byte-compiling /home/user/.cache/yay/pip2pkgbuild/pkg/python2-pip2pkgbuild/usr/lib/python2.7/site-packages/pip2pkgbuild/__init__.py to __init__.pyc byte-compiling /home/user/.cache/yay/pip2pkgbuild/pkg/python2-pip2pkgbuild/usr/lib/python2.7/site-packages/pip2pkgbuild/__main__.py to __main__.pyc byte-compiling /home/user/.cache/yay/pip2pkgbuild/pkg/python2-pip2pkgbuild/usr/lib/python2.7/site-packages/pip2pkgbuild/pip2pkgbuild.py to pip2pkgbuild.pyc writing byte-compilation script '/tmp/tmpFP4gr8.py' /usr/bin/python2 -O /tmp/tmpFP4gr8.py removing /tmp/tmpFP4gr8.py running install_egg_info running egg_info writing pip2pkgbuild.egg-info/PKG-INFO writing top-level names to pip2pkgbuild.egg-info/top_level.txt writing dependency_links to pip2pkgbuild.egg-info/dependency_links.txt writing entry points to pip2pkgbuild.egg-info/entry_points.txt reading manifest file 'pip2pkgbuild.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'pip2pkgbuild.egg-info/SOURCES.txt' Copying pip2pkgbuild.egg-info to /home/user/.cache/yay/pip2pkgbuild/pkg/python2-pip2pkgbuild/usr/lib/python2.7/site-packages/pip2pkgbuild-0.3.2-py2.7.egg-info running install_scripts Installing pip2pkgbuild script to /home/user/.cache/yay/pip2pkgbuild/pkg/python2-pip2pkgbuild/usr/bin ==> Tidying install... -> Removing libtool files... -> Purging unwanted files... -> Removing static library files... -> Stripping unneeded symbols from binaries and libraries... -> Compressing man and info pages... ==> Checking for packaging issues... ==> Creating package "python2-pip2pkgbuild"... -> Generating .PKGINFO file... -> Generating .BUILDINFO file... -> Generating .MTREE file... -> Compressing package... ==> Leaving fakeroot environment. ==> Finished making: pip2pkgbuild 0.3.2-1 (Sat 19 Mar 2022 07:02:52 PM EDT) ==> Cleaning up... [sudo] password for user: loading packages... warning: pip2pkgbuild-0.3.2-1 is up to date -- reinstalling resolving dependencies... looking for conflicting packages... Package (1) Old Version New Version Net Change pip2pkgbuild 0.3.2-1 0.3.2-1 0.00 MiB Total Installed Size: 0.07 MiB Net Upgrade Size: 0.00 MiB :: Proceed with installation? [Y/n] (1/1) checking keys in keyring [#######################################################################################] 100% (1/1) checking package integrity [#######################################################################################] 100% (1/1) loading package files [#######################################################################################] 100% (1/1) checking for file conflicts [#######################################################################################] 100% (1/1) checking available disk space [#######################################################################################] 100% :: Running pre-transaction hooks... (1/1) Creating Timeshift snapshot before upgrade... ==> skipping timeshift-autosnap due skipRsyncAutosnap in /etc/timeshift-autosnap.conf set to TRUE. :: Processing package changes... (1/1) reinstalling pip2pkgbuild [#######################################################################################] 100% warning: directory permissions differ on /home/user/ filesystem: 700 package: 755 :: Running post-transaction hooks... (1/2) Arming ConditionNeedsUpdate... (2/2) Refreshing PackageKit... ```

Whether I run the following as the very next commands, or in a freshly sourced terminal instance, I can't find the executable.

$ which pypi2pkgbuild
pypi2pkgbuild not found
$ which pypi2pkgbuild.py
pypi2pkgbuild.py not found

I can successfully install the package with pip.

Installing with pip ```bash $ python -m venv venv $ source ./venv/bin/activate $ pip freeze $ which pip /home/user/dev/2022-03-19_test/venv/bin/pip $ pip --version pip 22.0.4 from /home/user/dev/2022-03-19_test/venv/lib/python3.10/site-packages/pip (python 3.10) $ which python /home/user/dev/2022-03-19_test/venv/bin/python $ python --version Python 3.10.3 $ pip install pypi2pkgbuild --verbose Using pip 22.0.4 from /home/user/dev/2022-03-19_test/venv/lib/python3.10/site-packages/pip (python 3.10) Collecting pypi2pkgbuild Downloading pypi2pkgbuild-0.3.tar.gz (30 kB) Running command python setup.py egg_info WARNING: The wheel package is not available. WARNING: The wheel package is not available. WARNING: The wheel package is not available. WARNING: The wheel package is not available. running egg_info creating /tmp/pip-pip-egg-info-fuf71opp/pypi2pkgbuild.egg-info writing /tmp/pip-pip-egg-info-fuf71opp/pypi2pkgbuild.egg-info/PKG-INFO writing dependency_links to /tmp/pip-pip-egg-info-fuf71opp/pypi2pkgbuild.egg-info/dependency_links.txt writing requirements to /tmp/pip-pip-egg-info-fuf71opp/pypi2pkgbuild.egg-info/requires.txt writing top-level names to /tmp/pip-pip-egg-info-fuf71opp/pypi2pkgbuild.egg-info/top_level.txt writing manifest file '/tmp/pip-pip-egg-info-fuf71opp/pypi2pkgbuild.egg-info/SOURCES.txt' listing git files failed - pretending there aren't any reading manifest file '/tmp/pip-pip-egg-info-fuf71opp/pypi2pkgbuild.egg-info/SOURCES.txt' adding license file 'LICENSE.txt' writing manifest file '/tmp/pip-pip-egg-info-fuf71opp/pypi2pkgbuild.egg-info/SOURCES.txt' Preparing metadata (setup.py) ... done Requirement already satisfied: pip>=10 in ./venv/lib/python3.10/site-packages (from pypi2pkgbuild) (22.0.4) Requirement already satisfied: setuptools in ./venv/lib/python3.10/site-packages (from pypi2pkgbuild) (58.1.0) Collecting wheel Using cached wheel-0.37.1-py2.py3-none-any.whl (35 kB) Using legacy 'setup.py install' for pypi2pkgbuild, since package 'wheel' is not installed. Installing collected packages: wheel, pypi2pkgbuild changing mode of /home/user/dev/2022-03-19_test/venv/bin/wheel to 755 Running command Running setup.py install for pypi2pkgbuild running install running build running build_scripts creating build creating build/scripts-3.10 copying and adjusting pypi2pkgbuild.py -> build/scripts-3.10 changing mode of build/scripts-3.10/pypi2pkgbuild.py from 644 to 755 running install_egg_info running egg_info writing lib/pypi2pkgbuild.egg-info/PKG-INFO writing dependency_links to lib/pypi2pkgbuild.egg-info/dependency_links.txt writing requirements to lib/pypi2pkgbuild.egg-info/requires.txt writing top-level names to lib/pypi2pkgbuild.egg-info/top_level.txt listing git files failed - pretending there aren't any reading manifest file 'lib/pypi2pkgbuild.egg-info/SOURCES.txt' adding license file 'LICENSE.txt' writing manifest file 'lib/pypi2pkgbuild.egg-info/SOURCES.txt' Copying lib/pypi2pkgbuild.egg-info to /home/user/dev/2022-03-19_test/venv/lib/python3.10/site-packages/pypi2pkgbuild-0.3-py3.10.egg-info running install_scripts copying build/scripts-3.10/pypi2pkgbuild.py -> /home/user/dev/2022-03-19_test/venv/bin changing mode of /home/user/dev/2022-03-19_test/venv/bin/pypi2pkgbuild.py to 755 writing list of installed files to '/tmp/pip-record-_314igvw/install-record.txt' Running setup.py install for pypi2pkgbuild ... done [2022-03-19.log](https://github.com/anntzer/pypi2pkgbuild/files/8310339/2022-03-19.log) Successfully installed pypi2pkgbuild-0.3 wheel-0.37.1 $ pip freeze pypi2pkgbuild==0.3 $ which pypi2pkgbuild.py /home/user/dev/2022-03-19_test/venv/bin/pypi2pkgbuild.py $ pypi2pkgbuild.py --version pypi2pkgbuild.py 0.3 $ which pypi2pkgbuild pypi2pkgbuild not found ```

The package python-pypi2pkgbuild does appear in Octopi package manager, but in the shell which python-pypi2pkgbuild says not found.

Screenshot_20220319_195410

Attached log of full execution of the Arch-GNS3-Helper script. 2022-03-19.log

maximberezin97 commented 2 years ago

Sorry, wrong repo. Meant to post in a downstream project using this tool here. Closing now.