Roger Marsh
2021-05-10 17:50:09 UTC
After upgrading to OpenBSD 6.9 'ValueError: ZIP does not support timestamps before 1980' exceptions started occuring when installing python packages by:
'python3.8 setup.py install --user' where the package was built by:
'python3.8 setup.py sdist --formats gztar' and extracted from the archive on OpenBSD 6.9 by:
'tar xzf *.tar.gz'.
The script below uses the packaging_tutorial_elijah-0.0.3 package downloaded from pypi.org and I apologise for not letting the job install the numpy dependency in the two cases which get that far. The third case fails as described above.
Simply installing the downloaded package works.
Simulating the distribution and installation of a source package built from the downloaded code fails as described above.
If Python's tarfile module is used to extract the package from the locally created archive the installation works.
I have not seen problems with zip archives.
Source distributions built with python3.7 on OpenBSD 6.8 are installed by python3.8 on OpenBSD 6.9 after extracting with tar.
Does anyone else see this behaviour?
Roger
Script started on Mon May 10 16:06:25 2021
opendev$ ls -l pte
total 8
-rw-r--r-- 1 roger roger 1253 May 9 23:08 packaging_tutorial_elijah-0.0.3.tar.gz
opendev$ cd pte
opendev$ tar xzf packaging_tutorial_elijah-0.0.3.tar.gz
opendev$ ls -l *
-rw-r--r-- 1 roger roger 1253 May 9 23:08 packaging_tutorial_elijah-0.0.3.tar.gz
packaging_tutorial_elijah-0.0.3:
total 48
-rw-r--r-- 1 roger roger 485 Mar 30 10:27 PKG-INFO
-rw-r--r-- 1 roger roger 6 Mar 30 09:31 README.md
drwxr-xr-x 2 roger roger 512 Mar 30 10:27 example_pkg
drwxr-xr-x 2 roger roger 512 Mar 30 10:27 packaging_tutorial_elijah.egg-info
-rw-r--r-- 1 roger roger 42 Mar 30 10:27 setup.cfg
-rw-r--r-- 1 roger roger 751 Mar 30 10:27 setup.py
opendev$ python3.8 setup.py install --user
python3.8: can't open file 'setup.py': [Errno 2] No such file or directory
opendev$ cd packaging_tutorial_elijah-0.0.3
opendev$ python3.8 setup.py im nstall --user
running install
running bdist_egg
running egg_info
writing packaging_tutorial_elijah.egg-info/PKG-INFO
writing dependency_links to packaging_tutorial_elijah.egg-info/dependency_links.txt
writing requirements to packaging_tutorial_elijah.egg-info/requires.txt
writing top-level names to packaging_tutorial_elijah.egg-info/top_level.txt
reading manifest file 'packaging_tutorial_elijah.egg-info/SOURCES.txt'
writing manifest file 'packaging_tutorial_elijah.egg-info/SOURCES.txt'
installing library code to build/bdist.openbsd-6.9-amd64/egg
running install_lib
running build_py
creating build
creating build/lib
creating build/lib/example_pkg
copying example_pkg/hello.py -> build/lib/example_pkg
copying example_pkg/__init__.py -> build/lib/example_pkg
creating build/bdist.openbsd-6.9-amd64
creating build/bdist.openbsd-6.9-amd64/egg
creating build/bdist.openbsd-6.9-amd64/egg/example_pkg
copying build/lib/example_pkg/hello.py -> build/bdist.openbsd-6.9-amd64/egg/example_pkg
copying build/lib/example_pkg/__init__.py -> build/bdist.openbsd-6.9-amd64/egg/example_pkg
byte-compiling build/bdist.openbsd-6.9-amd64/egg/example_pkg/hello.py to hello.cpython-38.pyc
byte-compiling build/bdist.openbsd-6.9-amd64/egg/example_pkg/__init__.py to __init__.cpython-38.pyc
creating build/bdist.openbsd-6.9-amd64/egg/EGG-INFO
copying packaging_tutorial_elijah.egg-info/PKG-INFO -> build/bdist.openbsd-6.9-amd64/egg/EGG-INFO
copying packaging_tutorial_elijah.egg-info/SOURCES.txt -> build/bdist.openbsd-6.9-amd64/egg/EGG-INFO
copying packaging_tutorial_elijah.egg-info/dependency_links.txt -> build/bdist.openbsd-6.9-amd64/egg/EGG-INFO
copying packaging_tutorial_elijah.egg-info/requires.txt -> build/bdist.openbsd-6.9-amd64/egg/EGG-INFO
copying packaging_tutorial_elijah.egg-info/top_level.txt -> build/bdist.openbsd-6.9-amd64/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating dist
creating 'dist/packaging_tutorial_elijah-0.0.3-py3.8.egg' and adding 'build/bdist.openbsd-6.9-amd64/egg' to it
removing 'build/bdist.openbsd-6.9-amd64/egg' (and everything under it)
Processing packaging_tutorial_elijah-0.0.3-py3.8.egg
Removing /home/roger/.local/lib/python3.8/site-packages/packaging_tutorial_elijah-0.0.3-py3.8.egg
Copying packaging_tutorial_elijah-0.0.3-py3.8.egg to /home/roger/.local/lib/python3.8/site-packages
packaging-tutorial-elijah 0.0.3 is already the active version in easy-install.pth
Installed /home/roger/.local/lib/python3.8/site-packages/packaging_tutorial_elijah-0.0.3-py3.8.egg
Processing dependencies for packaging-tutorial-elijah==0.0.3
Searching for numpy
Reading https://pypi.org/simple/numpy/
Download error on https://pypi.org/simple/numpy/: [Errno -5] no address associated with name -- Some packages may not be found!
Couldn't find index page for 'numpy' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.org/simple/
Download error on https://pypi.org/simple/: [Errno -5] no address associated with name -- Some packages may not be found!
No local packages or working download links found for numpy
error: Could not find suitable distribution for Requirement.parse('numpy')
opendev$ ls -l ~/.local/lib/python3.8/site-packages
total 16
-rw-r--r-- 1 roger roger 44 May 10 16:10 easy-install.pth
-rw-r--r-- 1 roger roger 2223 May 10 16:10 packaging_tutorial_elijah-0.0.3-py3.8.egg
opendev$ ls -l ..
total 16
drwxr-xr-x 6 roger roger 512 May 10 16:10 packaging_tutorial_elijah-0.0.3
-rw-r--r-- 1 roger roger 1253 May 9 23:08 packaging_tutorial_elijah-0.0.3.tar.gz
opendev$ cd ..
opendev$ rm -r p*3
opendev$ ls -l
total 8
-rw-r--r-- 1 roger roger 1253 May 9 23:08 packaging_tutorial_elijah-0.0.3.tar.gz
opendev$ rm -r ~/.local/lib/python5 3.8/site-packages
opendev$
opendev$
opendev$ tar xzf packaging_tutorial_elijah-0.0.3.tar.gz
opendev$ ls -l
total 16
drwxr-xr-x 4 roger roger 512 Mar 30 10:27 packaging_tutorial_elijah-0.0.3
-rw-r--r-- 1 roger roger 1253 May 9 23:08 packaging_tutorial_elijah-0.0.3.tar.gz
opendev$ cd packaging_tutorial_elijah-0.0.3
opendev$ ls -l
total 48
-rw-r--r-- 1 roger roger 485 Mar 30 10:27 PKG-INFO
-rw-r--r-- 1 roger roger 6 Mar 30 09:31 README.md
drwxr-xr-x 2 roger roger 512 Mar 30 10:27 example_pkg
drwxr-xr-x 2 roger roger 512 Mar 30 10:27 packaging_tutorial_elijah.egg-info
-rw-r--r-- 1 roger roger 42 Mar 30 10:27 setup.cfg
-rw-r--r-- 1 roger roger 751 Mar 30 10:27 setup.py
opendev$ python3.8 setup.py sdist formats gztarformats gztar
opendev$
opendev$ python3.8 setup.py sdist --formats gztar
running sdist
running egg_info
writing packaging_tutorial_elijah.egg-info/PKG-INFO
writing dependency_links to packaging_tutorial_elijah.egg-info/dependency_links.txt
writing requirements to packaging_tutorial_elijah.egg-info/requires.txt
writing top-level names to packaging_tutorial_elijah.egg-info/top_level.txt
reading manifest file 'packaging_tutorial_elijah.egg-info/SOURCES.txt'
writing manifest file 'packaging_tutorial_elijah.egg-info/SOURCES.txt'
running check
creating packaging_tutorial_elijah-0.0.3
creating packaging_tutorial_elijah-0.0.3/example_pkg
creating packaging_tutorial_elijah-0.0.3/packaging_tutorial_elijah.egg-info
copying files to packaging_tutorial_elijah-0.0.3...
copying README.md -> packaging_tutorial_elijah-0.0.3
copying setup.cfg -> packaging_tutorial_elijah-0.0.3
copying setup.py -> packaging_tutorial_elijah-0.0.3
copying example_pkg/__init__.py -> packaging_tutorial_elijah-0.0.3/example_pkg
copying example_pkg/hello.py -> packaging_tutorial_elijah-0.0.3/example_pkg
copying packaging_tutorial_elijah.egg-info/PKG-INFO -> packaging_tutorial_elijah-0.0.3/packaging_tutorial_elijah.egg-info
copying packaging_tutorial_elijah.egg-info/SOURCES.txt -> packaging_tutorial_elijah-0.0.3/packaging_tutorial_elijah.egg-info
copying packaging_tutorial_elijah.egg-info/dependency_links.txt -> packaging_tutorial_elijah-0.0.3/packaging_tutorial_elijah.egg-info
copying packaging_tutorial_elijah.egg-info/requires.txt -> packaging_tutorial_elijah-0.0.3/packaging_tutorial_elijah.egg-info
copying packaging_tutorial_elijah.egg-info/top_level.txt -> packaging_tutorial_elijah-0.0.3/packaging_tutorial_elijah.egg-info
Writing packaging_tutorial_elijah-0.0.3/setup.cfg
creating dist
Creating tar archive
removing 'packaging_tutorial_elijah-0.0.3' (and everything under it)
opendev$ ls -l
total 56
-rw-r--r-- 1 roger roger 485 Mar 30 10:27 PKG-INFO
-rw-r--r-- 1 roger roger 6 Mar 30 09:31 README.md
drwxr-xr-x 2 roger roger 512 May 10 16:16 dist
drwxr-xr-x 2 roger roger 512 Mar 30 10:27 example_pkg
drwxr-xr-x 2 roger roger 512 May 10 16:16 packaging_tutorial_elijah.egg-info
-rw-r--r-- 1 roger roger 42 Mar 30 10:27 setup.cfg
-rw-r--r-- 1 roger roger 751 Mar 30 10:27 setup.py
opendev$ cd dist
opendev$ ls -l
total 8
-rw-r--r-- 1 roger roger 1442 May 10 16:16 packaging_tutorial_elijah-0.0.3.tar.gz
opendev$ tar xzf packaging_tutorial_elijah-0.0.3.tar.gz
opendev$ ls -l *
-rw-r--r-- 1 roger roger 1442 May 10 16:16 packaging_tutorial_elijah-0.0.3.tar.gz
packaging_tutorial_elijah-0.0.3:
total 48
-rw-r--r-- 1 roger roger 467 Jan 1 1970 PKG-INFO
-rw-r--r-- 1 roger roger 6 Jan 1 1970 README.md
drwxr-xr-x 2 roger roger 512 Jan 1 1970 example_pkg
drwxr-xr-x 2 roger roger 512 Jan 1 1970 packaging_tutorial_elijah.egg-info
-rw-r--r-- 1 roger roger 38 Jan 1 1970 setup.cfg
-rw-r--r-- 1 roger roger 751 Jan 1 1970 setup.py
opendev$
opendev$
opendev$ cd packaging_ti utorial_elijah-0.0.3
opendev$ python3.8 setup.py install --user
running install
running bdist_egg
running egg_info
writing packaging_tutorial_elijah.egg-info/PKG-INFO
writing dependency_links to packaging_tutorial_elijah.egg-info/dependency_links.txt
writing requirements to packaging_tutorial_elijah.egg-info/requires.txt
writing top-level names to packaging_tutorial_elijah.egg-info/top_level.txt
reading manifest file 'packaging_tutorial_elijah.egg-info/SOURCES.txt'
writing manifest file 'packaging_tutorial_elijah.egg-info/SOURCES.txt'
installing library code to build/bdist.openbsd-6.9-amd64/egg
running install_lib
running build_py
creating build
creating build/lib
creating build/lib/example_pkg
copying example_pkg/__init__.py -> build/lib/example_pkg
copying example_pkg/hello.py -> build/lib/example_pkg
creating build/bdist.openbsd-6.9-amd64
creating build/bdist.openbsd-6.9-amd64/egg
creating build/bdist.openbsd-6.9-amd64/egg/example_pkg
copying build/lib/example_pkg/__init__.py -> build/bdist.openbsd-6.9-amd64/egg/example_pkg
copying build/lib/example_pkg/hello.py -> build/bdist.openbsd-6.9-amd64/egg/example_pkg
byte-compiling build/bdist.openbsd-6.9-amd64/egg/example_pkg/__init__.py to __init__.cpython-38.pyc
byte-compiling build/bdist.openbsd-6.9-amd64/egg/example_pkg/hello.py to hello.cpython-38.pyc
creating build/bdist.openbsd-6.9-amd64/egg/EGG-INFO
copying packaging_tutorial_elijah.egg-info/PKG-INFO -> build/bdist.openbsd-6.9-amd64/egg/EGG-INFO
copying packaging_tutorial_elijah.egg-info/SOURCES.txt -> build/bdist.openbsd-6.9-amd64/egg/EGG-INFO
copying packaging_tutorial_elijah.egg-info/dependency_links.txt -> build/bdist.openbsd-6.9-amd64/egg/EGG-INFO
copying packaging_tutorial_elijah.egg-info/requires.txt -> build/bdist.openbsd-6.9-amd64/egg/EGG-INFO
copying packaging_tutorial_elijah.egg-info/top_level.txt -> build/bdist.openbsd-6.9-amd64/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating dist
creating 'dist/packaging_tutorial_elijah-0.0.3-py3.8.egg' and adding 'build/bdist.openbsd-6.9-amd64/egg' to it
Traceback (most recent call last):
File "setup.py", line 7, in <module>
setup(
File "/usr/local/lib/python3.8/site-packages/setuptools/__init__.py", line 162, in setup
return distutils.core.setup(**attrs)
File "/usr/local/lib/python3.8/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/local/lib/python3.8/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/usr/local/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/local/lib/python3.8/site-packages/setuptools/command/install.py", line 67, in run
self.do_egg_install()
File "/usr/local/lib/python3.8/site-packages/setuptools/command/install.py", line 109, in do_egg_install
self.run_command('bdist_egg')
File "/usr/local/lib/python3.8/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/local/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/local/lib/python3.8/site-packages/setuptools/command/bdist_egg.py", line 233, in run
make_zipfile(self.egg_output, archive_root, verbose=self.verbose,
File "/usr/local/lib/python3.8/site-packages/setuptools/command/bdist_egg.py", line 497, in make_zipfile
visit(z, dirname, files)
File "/usr/local/lib/python3.8/site-packages/setuptools/command/bdist_egg.py", line 490, in visit
z.write(path, p)
File "/usr/local/lib/python3.8/zipfile.py", line 1741, in write
zinfo = ZipInfo.from_file(filename, arcname,
File "/usr/local/lib/python3.8/zipfile.py", line 539, in from_file
zinfo = cls(arcname, date_time)
File "/usr/local/lib/python3.8/zipfile.py", line 362, in __init__
raise ValueError('ZIP does not support timestamps before 1980')
ValueError: ZIP does not support timestamps before 1980
opendev$
opendev$
opendev$ ls ~/.local/lib/python3.8/site-pacj kages
opendev$ ls
PKG-INFO example_pkg
README.md packaging_tutorial_elijah.egg-info
build setup.cfg
dist setup.py
opendev$ cd ..
opendev$ ls -l
total 16
drwxr-xr-x 6 roger roger 512 May 10 16:21 packaging_tutorial_elijah-0.0.3
-rw-r--r-- 1 roger roger 1442 May 10 16:16 packaging_tutorial_elijah-0.0.3.tar.gz
opendev$ cd ..
opendev$ ls -l
total 56
-rw-r--r-- 1 roger roger 485 Mar 30 10:27 PKG-INFO
-rw-r--r-- 1 roger roger 6 Mar 30 09:31 README.md
drwxr-xr-x 3 roger roger 512 May 10 16:17 dist
drwxr-xr-x 2 roger roger 512 Mar 30 10:27 example_pkg
drwxr-xr-x 2 roger roger 512 May 10 16:16 packaging_tutorial_elijah.egg-info
-rw-r--r-- 1 roger roger 42 Mar 30 10:27 setup.cfg
-rw-r--r-- 1 roger roger 751 Mar 30 10:27 setup.py
opendev$ cd ..
opendev$ ls -l
total 16
drwxr-xr-x 5 roger roger 512 May 10 16:16 packaging_tutorial_elijah-0.0.3
-rw-r--r-- 1 roger roger 1253 May 9 23:08 packaging_tutorial_elijah-0.0.3.tar.gz
opendev$ rm -r p*3
opendev$ ls -l
total 8
-rw-r--r-- 1 roger roger 1253 May 9 23:08 packaging_tutorial_elijah-0.0.3.tar.gz
opendev$ python3.8
Python 3.8.8 (default, Apr 19 2021, 10:23:47)
[Clang 10.0.1 ] on openbsd6
Type "help", "copyright", "credits" or "license" for more information.
[?1034h>>> import tarfile
-rw-r--r-- 1 roger roger 1253 May 9 23:08 packaging_tutorial_elijah-0.0.3.tar.gz
packaging_tutorial_elijah-0.0.3:
total 48
-rw-rw-rw- 1 roger roger 485 Mar 30 10:27 PKG-INFO
-rw-rw-rw- 1 roger roger 6 Mar 30 09:31 README.md
drwxrwxrwx 2 roger roger 512 Mar 30 10:27 example_pkg
drwxrwxrwx 2 roger roger 512 Mar 30 10:27 packaging_tutorial_elijah.egg-info
-rw-rw-rw- 1 roger roger 42 Mar 30 10:27 setup.cfg
-rw-rw-rw- 1 roger roger 751 Mar 30 10:27 setup.py
opendev$
opendev$ echo "whoops: not yet!"
whoops: not yet!
opendev$
opendev$ rm -r p*3
opendev$ ls -l
total 8
-rw-r--r-- 1 roger roger 1253 May 9 23:08 packaging_tutorial_elijah-0.0.3.tar.gz
opendev$ tar xzf packaging_tutorial_elijah-0.0.3.tar.gz
opendev$ ls -l
total 16
drwxr-xr-x 4 roger roger 512 Mar 30 10:27 packaging_tutorial_elijah-0.0.3
-rw-r--r-- 1 roger roger 1253 May 9 23:08 packaging_tutorial_elijah-0.0.3.tar.gz
opendev$ cd packaging_tutorial_elijah-0.0.3
opendev$ python3.8 setup.py sdiat st --formats gztar
running sdist
running egg_info
writing packaging_tutorial_elijah.egg-info/PKG-INFO
writing dependency_links to packaging_tutorial_elijah.egg-info/dependency_links.txt
writing requirements to packaging_tutorial_elijah.egg-info/requires.txt
writing top-level names to packaging_tutorial_elijah.egg-info/top_level.txt
reading manifest file 'packaging_tutorial_elijah.egg-info/SOURCES.txt'
writing manifest file 'packaging_tutorial_elijah.egg-info/SOURCES.txt'
running check
creating packaging_tutorial_elijah-0.0.3
creating packaging_tutorial_elijah-0.0.3/example_pkg
creating packaging_tutorial_elijah-0.0.3/packaging_tutorial_elijah.egg-info
copying files to packaging_tutorial_elijah-0.0.3...
copying README.md -> packaging_tutorial_elijah-0.0.3
copying setup.cfg -> packaging_tutorial_elijah-0.0.3
copying setup.py -> packaging_tutorial_elijah-0.0.3
copying example_pkg/__init__.py -> packaging_tutorial_elijah-0.0.3/example_pkg
copying example_pkg/hello.py -> packaging_tutorial_elijah-0.0.3/example_pkg
copying packaging_tutorial_elijah.egg-info/PKG-INFO -> packaging_tutorial_elijah-0.0.3/packaging_tutorial_elijah.egg-info
copying packaging_tutorial_elijah.egg-info/SOURCES.txt -> packaging_tutorial_elijah-0.0.3/packaging_tutorial_elijah.egg-info
copying packaging_tutorial_elijah.egg-info/dependency_links.txt -> packaging_tutorial_elijah-0.0.3/packaging_tutorial_elijah.egg-info
copying packaging_tutorial_elijah.egg-info/requires.txt -> packaging_tutorial_elijah-0.0.3/packaging_tutorial_elijah.egg-info
copying packaging_tutorial_elijah.egg-info/top_level.txt -> packaging_tutorial_elijah-0.0.3/packaging_tutorial_elijah.egg-info
Writing packaging_tutorial_elijah-0.0.3/setup.cfg
creating dist
Creating tar archive
removing 'packaging_tutorial_elijah-0.0.3' (and everything under it)
opendev$ ls -l *
-rw-r--r-- 1 roger roger 485 Mar 30 10:27 PKG-INFO
-rw-r--r-- 1 roger roger 6 Mar 30 09:31 README.md
-rw-r--r-- 1 roger roger 42 Mar 30 10:27 setup.cfg
-rw-r--r-- 1 roger roger 751 Mar 30 10:27 setup.py
dist:
total 8
-rw-r--r-- 1 roger roger 1450 May 10 16:32 packaging_tutorial_elijah-0.0.3.tar.gz
example_pkg:
total 8
-rw-r--r-- 1 roger roger 0 Mar 30 09:30 __init__.py
-rw-r--r-- 1 roger roger 96 Mar 30 10:26 hello.py
packaging_tutorial_elijah.egg-info:
total 40
-rw-r--r-- 1 roger roger 467 May 10 16:32 PKG-INFO
-rw-r--r-- 1 roger roger 317 May 10 16:32 SOURCES.txt
-rw-r--r-- 1 roger roger 1 May 10 16:32 dependency_links.txt
-rw-r--r-- 1 roger roger 6 May 10 16:32 requires.txt
-rw-r--r-- 1 roger roger 12 May 10 16:32 top_level.txt
opendev$
opendev$
opendev$ cd dist
opendev$ ls -l
total 8
-rw-r--r-- 1 roger roger 1450 May 10 16:32 packaging_tutorial_elijah-0.0.3.tar.gz
opendev$ python3.8
Python 3.8.8 (default, Apr 19 2021, 10:23:47)
[Clang 10.0.1 ] on openbsd6
Type "help", "copyright", "credits" or "license" for more information.
[?1034h>>> import tarfile
-rw-r--r-- 1 roger roger 1450 May 10 16:32 packaging_tutorial_elijah-0.0.3.tar.gz
packaging_tutorial_elijah-0.0.3:
total 48
-rw-r--r-- 1 roger roger 467 May 10 16:32 PKG-INFO
-rw-r--r-- 1 roger roger 6 Mar 30 09:31 README.md
drwxr-xr-x 2 roger roger 512 May 10 16:32 example_pkg
drwxr-xr-x 2 roger roger 512 May 10 16:32 packaging_tutorial_elijah.egg-info
-rw-r--r-- 1 roger roger 38 May 10 16:32 setup.cfg
-rw-r--r-- 1 roger roger 751 Mar 30 10:27 setup.py
opendev$
opendev$ cd pk ackaging_tutorial_elijah-0.0.3
opendev$ python3.8 setup.py install --user
running install
running bdist_egg
running egg_info
writing packaging_tutorial_elijah.egg-info/PKG-INFO
writing dependency_links to packaging_tutorial_elijah.egg-info/dependency_links.txt
writing requirements to packaging_tutorial_elijah.egg-info/requires.txt
writing top-level names to packaging_tutorial_elijah.egg-info/top_level.txt
reading manifest file 'packaging_tutorial_elijah.egg-info/SOURCES.txt'
writing manifest file 'packaging_tutorial_elijah.egg-info/SOURCES.txt'
installing library code to build/bdist.openbsd-6.9-amd64/egg
running install_lib
running build_py
creating build
creating build/lib
creating build/lib/example_pkg
copying example_pkg/__init__.py -> build/lib/example_pkg
copying example_pkg/hello.py -> build/lib/example_pkg
creating build/bdist.openbsd-6.9-amd64
creating build/bdist.openbsd-6.9-amd64/egg
creating build/bdist.openbsd-6.9-amd64/egg/example_pkg
copying build/lib/example_pkg/__init__.py -> build/bdist.openbsd-6.9-amd64/egg/example_pkg
copying build/lib/example_pkg/hello.py -> build/bdist.openbsd-6.9-amd64/egg/example_pkg
byte-compiling build/bdist.openbsd-6.9-amd64/egg/example_pkg/__init__.py to __init__.cpython-38.pyc
byte-compiling build/bdist.openbsd-6.9-amd64/egg/example_pkg/hello.py to hello.cpython-38.pyc
creating build/bdist.openbsd-6.9-amd64/egg/EGG-INFO
copying packaging_tutorial_elijah.egg-info/PKG-INFO -> build/bdist.openbsd-6.9-amd64/egg/EGG-INFO
copying packaging_tutorial_elijah.egg-info/SOURCES.txt -> build/bdist.openbsd-6.9-amd64/egg/EGG-INFO
copying packaging_tutorial_elijah.egg-info/dependency_links.txt -> build/bdist.openbsd-6.9-amd64/egg/EGG-INFO
copying packaging_tutorial_elijah.egg-info/requires.txt -> build/bdist.openbsd-6.9-amd64/egg/EGG-INFO
copying packaging_tutorial_elijah.egg-info/top_level.txt -> build/bdist.openbsd-6.9-amd64/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating dist
creating 'dist/packaging_tutorial_elijah-0.0.3-py3.8.egg' and adding 'build/bdist.openbsd-6.9-amd64/egg' to it
removing 'build/bdist.openbsd-6.9-amd64/egg' (and everything under it)
Processing packaging_tutorial_elijah-0.0.3-py3.8.egg
Copying packaging_tutorial_elijah-0.0.3-py3.8.egg to /home/roger/.local/lib/python3.8/site-packages
Adding packaging-tutorial-elijah 0.0.3 to easy-install.pth file
Installed /home/roger/.local/lib/python3.8/site-packages/packaging_tutorial_elijah-0.0.3-py3.8.egg
Processing dependencies for packaging-tutorial-elijah==0.0.3
Searching for numpy
Reading https://pypi.org/simple/numpy/
Download error on https://pypi.org/simple/numpy/: [Errno -5] no address associated with name -- Some packages may not be found!
Couldn't find index page for 'numpy' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.org/simple/
Download error on https://pypi.org/simple/: [Errno -5] no address associated with name -- Some packages may not be found!
No local packages or working download links found for numpy
error: Could not find suitable distribution for Requirement.parse('numpy')
opendev$
opendev$
opendev$ ls ~/.local
opendev$ ls -l ~/.local/lib/python3.. 8/site-packages
total 16
-rw-r--r-- 1 roger roger 44 May 10 16:37 easy-install.pth
-rw-r--r-- 1 roger roger 2223 May 10 16:37 packaging_tutorial_elijah-0.0.3-py3.8.egg
opendev$ exit()
opendev$ exit
Script done on Mon May 10 16:39:31 2021
'python3.8 setup.py install --user' where the package was built by:
'python3.8 setup.py sdist --formats gztar' and extracted from the archive on OpenBSD 6.9 by:
'tar xzf *.tar.gz'.
The script below uses the packaging_tutorial_elijah-0.0.3 package downloaded from pypi.org and I apologise for not letting the job install the numpy dependency in the two cases which get that far. The third case fails as described above.
Simply installing the downloaded package works.
Simulating the distribution and installation of a source package built from the downloaded code fails as described above.
If Python's tarfile module is used to extract the package from the locally created archive the installation works.
I have not seen problems with zip archives.
Source distributions built with python3.7 on OpenBSD 6.8 are installed by python3.8 on OpenBSD 6.9 after extracting with tar.
Does anyone else see this behaviour?
Roger
Script started on Mon May 10 16:06:25 2021
opendev$ ls -l pte
total 8
-rw-r--r-- 1 roger roger 1253 May 9 23:08 packaging_tutorial_elijah-0.0.3.tar.gz
opendev$ cd pte
opendev$ tar xzf packaging_tutorial_elijah-0.0.3.tar.gz
opendev$ ls -l *
-rw-r--r-- 1 roger roger 1253 May 9 23:08 packaging_tutorial_elijah-0.0.3.tar.gz
packaging_tutorial_elijah-0.0.3:
total 48
-rw-r--r-- 1 roger roger 485 Mar 30 10:27 PKG-INFO
-rw-r--r-- 1 roger roger 6 Mar 30 09:31 README.md
drwxr-xr-x 2 roger roger 512 Mar 30 10:27 example_pkg
drwxr-xr-x 2 roger roger 512 Mar 30 10:27 packaging_tutorial_elijah.egg-info
-rw-r--r-- 1 roger roger 42 Mar 30 10:27 setup.cfg
-rw-r--r-- 1 roger roger 751 Mar 30 10:27 setup.py
opendev$ python3.8 setup.py install --user
python3.8: can't open file 'setup.py': [Errno 2] No such file or directory
opendev$ cd packaging_tutorial_elijah-0.0.3
opendev$ python3.8 setup.py im nstall --user
running install
running bdist_egg
running egg_info
writing packaging_tutorial_elijah.egg-info/PKG-INFO
writing dependency_links to packaging_tutorial_elijah.egg-info/dependency_links.txt
writing requirements to packaging_tutorial_elijah.egg-info/requires.txt
writing top-level names to packaging_tutorial_elijah.egg-info/top_level.txt
reading manifest file 'packaging_tutorial_elijah.egg-info/SOURCES.txt'
writing manifest file 'packaging_tutorial_elijah.egg-info/SOURCES.txt'
installing library code to build/bdist.openbsd-6.9-amd64/egg
running install_lib
running build_py
creating build
creating build/lib
creating build/lib/example_pkg
copying example_pkg/hello.py -> build/lib/example_pkg
copying example_pkg/__init__.py -> build/lib/example_pkg
creating build/bdist.openbsd-6.9-amd64
creating build/bdist.openbsd-6.9-amd64/egg
creating build/bdist.openbsd-6.9-amd64/egg/example_pkg
copying build/lib/example_pkg/hello.py -> build/bdist.openbsd-6.9-amd64/egg/example_pkg
copying build/lib/example_pkg/__init__.py -> build/bdist.openbsd-6.9-amd64/egg/example_pkg
byte-compiling build/bdist.openbsd-6.9-amd64/egg/example_pkg/hello.py to hello.cpython-38.pyc
byte-compiling build/bdist.openbsd-6.9-amd64/egg/example_pkg/__init__.py to __init__.cpython-38.pyc
creating build/bdist.openbsd-6.9-amd64/egg/EGG-INFO
copying packaging_tutorial_elijah.egg-info/PKG-INFO -> build/bdist.openbsd-6.9-amd64/egg/EGG-INFO
copying packaging_tutorial_elijah.egg-info/SOURCES.txt -> build/bdist.openbsd-6.9-amd64/egg/EGG-INFO
copying packaging_tutorial_elijah.egg-info/dependency_links.txt -> build/bdist.openbsd-6.9-amd64/egg/EGG-INFO
copying packaging_tutorial_elijah.egg-info/requires.txt -> build/bdist.openbsd-6.9-amd64/egg/EGG-INFO
copying packaging_tutorial_elijah.egg-info/top_level.txt -> build/bdist.openbsd-6.9-amd64/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating dist
creating 'dist/packaging_tutorial_elijah-0.0.3-py3.8.egg' and adding 'build/bdist.openbsd-6.9-amd64/egg' to it
removing 'build/bdist.openbsd-6.9-amd64/egg' (and everything under it)
Processing packaging_tutorial_elijah-0.0.3-py3.8.egg
Removing /home/roger/.local/lib/python3.8/site-packages/packaging_tutorial_elijah-0.0.3-py3.8.egg
Copying packaging_tutorial_elijah-0.0.3-py3.8.egg to /home/roger/.local/lib/python3.8/site-packages
packaging-tutorial-elijah 0.0.3 is already the active version in easy-install.pth
Installed /home/roger/.local/lib/python3.8/site-packages/packaging_tutorial_elijah-0.0.3-py3.8.egg
Processing dependencies for packaging-tutorial-elijah==0.0.3
Searching for numpy
Reading https://pypi.org/simple/numpy/
Download error on https://pypi.org/simple/numpy/: [Errno -5] no address associated with name -- Some packages may not be found!
Couldn't find index page for 'numpy' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.org/simple/
Download error on https://pypi.org/simple/: [Errno -5] no address associated with name -- Some packages may not be found!
No local packages or working download links found for numpy
error: Could not find suitable distribution for Requirement.parse('numpy')
opendev$ ls -l ~/.local/lib/python3.8/site-packages
total 16
-rw-r--r-- 1 roger roger 44 May 10 16:10 easy-install.pth
-rw-r--r-- 1 roger roger 2223 May 10 16:10 packaging_tutorial_elijah-0.0.3-py3.8.egg
opendev$ ls -l ..
total 16
drwxr-xr-x 6 roger roger 512 May 10 16:10 packaging_tutorial_elijah-0.0.3
-rw-r--r-- 1 roger roger 1253 May 9 23:08 packaging_tutorial_elijah-0.0.3.tar.gz
opendev$ cd ..
opendev$ rm -r p*3
opendev$ ls -l
total 8
-rw-r--r-- 1 roger roger 1253 May 9 23:08 packaging_tutorial_elijah-0.0.3.tar.gz
opendev$ rm -r ~/.local/lib/python5 3.8/site-packages
opendev$
opendev$
opendev$ tar xzf packaging_tutorial_elijah-0.0.3.tar.gz
opendev$ ls -l
total 16
drwxr-xr-x 4 roger roger 512 Mar 30 10:27 packaging_tutorial_elijah-0.0.3
-rw-r--r-- 1 roger roger 1253 May 9 23:08 packaging_tutorial_elijah-0.0.3.tar.gz
opendev$ cd packaging_tutorial_elijah-0.0.3
opendev$ ls -l
total 48
-rw-r--r-- 1 roger roger 485 Mar 30 10:27 PKG-INFO
-rw-r--r-- 1 roger roger 6 Mar 30 09:31 README.md
drwxr-xr-x 2 roger roger 512 Mar 30 10:27 example_pkg
drwxr-xr-x 2 roger roger 512 Mar 30 10:27 packaging_tutorial_elijah.egg-info
-rw-r--r-- 1 roger roger 42 Mar 30 10:27 setup.cfg
-rw-r--r-- 1 roger roger 751 Mar 30 10:27 setup.py
opendev$ python3.8 setup.py sdist formats gztarformats gztar
opendev$
opendev$ python3.8 setup.py sdist --formats gztar
running sdist
running egg_info
writing packaging_tutorial_elijah.egg-info/PKG-INFO
writing dependency_links to packaging_tutorial_elijah.egg-info/dependency_links.txt
writing requirements to packaging_tutorial_elijah.egg-info/requires.txt
writing top-level names to packaging_tutorial_elijah.egg-info/top_level.txt
reading manifest file 'packaging_tutorial_elijah.egg-info/SOURCES.txt'
writing manifest file 'packaging_tutorial_elijah.egg-info/SOURCES.txt'
running check
creating packaging_tutorial_elijah-0.0.3
creating packaging_tutorial_elijah-0.0.3/example_pkg
creating packaging_tutorial_elijah-0.0.3/packaging_tutorial_elijah.egg-info
copying files to packaging_tutorial_elijah-0.0.3...
copying README.md -> packaging_tutorial_elijah-0.0.3
copying setup.cfg -> packaging_tutorial_elijah-0.0.3
copying setup.py -> packaging_tutorial_elijah-0.0.3
copying example_pkg/__init__.py -> packaging_tutorial_elijah-0.0.3/example_pkg
copying example_pkg/hello.py -> packaging_tutorial_elijah-0.0.3/example_pkg
copying packaging_tutorial_elijah.egg-info/PKG-INFO -> packaging_tutorial_elijah-0.0.3/packaging_tutorial_elijah.egg-info
copying packaging_tutorial_elijah.egg-info/SOURCES.txt -> packaging_tutorial_elijah-0.0.3/packaging_tutorial_elijah.egg-info
copying packaging_tutorial_elijah.egg-info/dependency_links.txt -> packaging_tutorial_elijah-0.0.3/packaging_tutorial_elijah.egg-info
copying packaging_tutorial_elijah.egg-info/requires.txt -> packaging_tutorial_elijah-0.0.3/packaging_tutorial_elijah.egg-info
copying packaging_tutorial_elijah.egg-info/top_level.txt -> packaging_tutorial_elijah-0.0.3/packaging_tutorial_elijah.egg-info
Writing packaging_tutorial_elijah-0.0.3/setup.cfg
creating dist
Creating tar archive
removing 'packaging_tutorial_elijah-0.0.3' (and everything under it)
opendev$ ls -l
total 56
-rw-r--r-- 1 roger roger 485 Mar 30 10:27 PKG-INFO
-rw-r--r-- 1 roger roger 6 Mar 30 09:31 README.md
drwxr-xr-x 2 roger roger 512 May 10 16:16 dist
drwxr-xr-x 2 roger roger 512 Mar 30 10:27 example_pkg
drwxr-xr-x 2 roger roger 512 May 10 16:16 packaging_tutorial_elijah.egg-info
-rw-r--r-- 1 roger roger 42 Mar 30 10:27 setup.cfg
-rw-r--r-- 1 roger roger 751 Mar 30 10:27 setup.py
opendev$ cd dist
opendev$ ls -l
total 8
-rw-r--r-- 1 roger roger 1442 May 10 16:16 packaging_tutorial_elijah-0.0.3.tar.gz
opendev$ tar xzf packaging_tutorial_elijah-0.0.3.tar.gz
opendev$ ls -l *
-rw-r--r-- 1 roger roger 1442 May 10 16:16 packaging_tutorial_elijah-0.0.3.tar.gz
packaging_tutorial_elijah-0.0.3:
total 48
-rw-r--r-- 1 roger roger 467 Jan 1 1970 PKG-INFO
-rw-r--r-- 1 roger roger 6 Jan 1 1970 README.md
drwxr-xr-x 2 roger roger 512 Jan 1 1970 example_pkg
drwxr-xr-x 2 roger roger 512 Jan 1 1970 packaging_tutorial_elijah.egg-info
-rw-r--r-- 1 roger roger 38 Jan 1 1970 setup.cfg
-rw-r--r-- 1 roger roger 751 Jan 1 1970 setup.py
opendev$
opendev$
opendev$ cd packaging_ti utorial_elijah-0.0.3
opendev$ python3.8 setup.py install --user
running install
running bdist_egg
running egg_info
writing packaging_tutorial_elijah.egg-info/PKG-INFO
writing dependency_links to packaging_tutorial_elijah.egg-info/dependency_links.txt
writing requirements to packaging_tutorial_elijah.egg-info/requires.txt
writing top-level names to packaging_tutorial_elijah.egg-info/top_level.txt
reading manifest file 'packaging_tutorial_elijah.egg-info/SOURCES.txt'
writing manifest file 'packaging_tutorial_elijah.egg-info/SOURCES.txt'
installing library code to build/bdist.openbsd-6.9-amd64/egg
running install_lib
running build_py
creating build
creating build/lib
creating build/lib/example_pkg
copying example_pkg/__init__.py -> build/lib/example_pkg
copying example_pkg/hello.py -> build/lib/example_pkg
creating build/bdist.openbsd-6.9-amd64
creating build/bdist.openbsd-6.9-amd64/egg
creating build/bdist.openbsd-6.9-amd64/egg/example_pkg
copying build/lib/example_pkg/__init__.py -> build/bdist.openbsd-6.9-amd64/egg/example_pkg
copying build/lib/example_pkg/hello.py -> build/bdist.openbsd-6.9-amd64/egg/example_pkg
byte-compiling build/bdist.openbsd-6.9-amd64/egg/example_pkg/__init__.py to __init__.cpython-38.pyc
byte-compiling build/bdist.openbsd-6.9-amd64/egg/example_pkg/hello.py to hello.cpython-38.pyc
creating build/bdist.openbsd-6.9-amd64/egg/EGG-INFO
copying packaging_tutorial_elijah.egg-info/PKG-INFO -> build/bdist.openbsd-6.9-amd64/egg/EGG-INFO
copying packaging_tutorial_elijah.egg-info/SOURCES.txt -> build/bdist.openbsd-6.9-amd64/egg/EGG-INFO
copying packaging_tutorial_elijah.egg-info/dependency_links.txt -> build/bdist.openbsd-6.9-amd64/egg/EGG-INFO
copying packaging_tutorial_elijah.egg-info/requires.txt -> build/bdist.openbsd-6.9-amd64/egg/EGG-INFO
copying packaging_tutorial_elijah.egg-info/top_level.txt -> build/bdist.openbsd-6.9-amd64/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating dist
creating 'dist/packaging_tutorial_elijah-0.0.3-py3.8.egg' and adding 'build/bdist.openbsd-6.9-amd64/egg' to it
Traceback (most recent call last):
File "setup.py", line 7, in <module>
setup(
File "/usr/local/lib/python3.8/site-packages/setuptools/__init__.py", line 162, in setup
return distutils.core.setup(**attrs)
File "/usr/local/lib/python3.8/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/local/lib/python3.8/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/usr/local/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/local/lib/python3.8/site-packages/setuptools/command/install.py", line 67, in run
self.do_egg_install()
File "/usr/local/lib/python3.8/site-packages/setuptools/command/install.py", line 109, in do_egg_install
self.run_command('bdist_egg')
File "/usr/local/lib/python3.8/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/local/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/local/lib/python3.8/site-packages/setuptools/command/bdist_egg.py", line 233, in run
make_zipfile(self.egg_output, archive_root, verbose=self.verbose,
File "/usr/local/lib/python3.8/site-packages/setuptools/command/bdist_egg.py", line 497, in make_zipfile
visit(z, dirname, files)
File "/usr/local/lib/python3.8/site-packages/setuptools/command/bdist_egg.py", line 490, in visit
z.write(path, p)
File "/usr/local/lib/python3.8/zipfile.py", line 1741, in write
zinfo = ZipInfo.from_file(filename, arcname,
File "/usr/local/lib/python3.8/zipfile.py", line 539, in from_file
zinfo = cls(arcname, date_time)
File "/usr/local/lib/python3.8/zipfile.py", line 362, in __init__
raise ValueError('ZIP does not support timestamps before 1980')
ValueError: ZIP does not support timestamps before 1980
opendev$
opendev$
opendev$ ls ~/.local/lib/python3.8/site-pacj kages
opendev$ ls
PKG-INFO example_pkg
README.md packaging_tutorial_elijah.egg-info
build setup.cfg
dist setup.py
opendev$ cd ..
opendev$ ls -l
total 16
drwxr-xr-x 6 roger roger 512 May 10 16:21 packaging_tutorial_elijah-0.0.3
-rw-r--r-- 1 roger roger 1442 May 10 16:16 packaging_tutorial_elijah-0.0.3.tar.gz
opendev$ cd ..
opendev$ ls -l
total 56
-rw-r--r-- 1 roger roger 485 Mar 30 10:27 PKG-INFO
-rw-r--r-- 1 roger roger 6 Mar 30 09:31 README.md
drwxr-xr-x 3 roger roger 512 May 10 16:17 dist
drwxr-xr-x 2 roger roger 512 Mar 30 10:27 example_pkg
drwxr-xr-x 2 roger roger 512 May 10 16:16 packaging_tutorial_elijah.egg-info
-rw-r--r-- 1 roger roger 42 Mar 30 10:27 setup.cfg
-rw-r--r-- 1 roger roger 751 Mar 30 10:27 setup.py
opendev$ cd ..
opendev$ ls -l
total 16
drwxr-xr-x 5 roger roger 512 May 10 16:16 packaging_tutorial_elijah-0.0.3
-rw-r--r-- 1 roger roger 1253 May 9 23:08 packaging_tutorial_elijah-0.0.3.tar.gz
opendev$ rm -r p*3
opendev$ ls -l
total 8
-rw-r--r-- 1 roger roger 1253 May 9 23:08 packaging_tutorial_elijah-0.0.3.tar.gz
opendev$ python3.8
Python 3.8.8 (default, Apr 19 2021, 10:23:47)
[Clang 10.0.1 ] on openbsd6
Type "help", "copyright", "credits" or "license" for more information.
[?1034h>>> import tarfile
tarfile.open(name='packaging_tutorial_elijah-0.0.3.tar.gz').extractall()
exit()
opendev$ ls -l *exit()
-rw-r--r-- 1 roger roger 1253 May 9 23:08 packaging_tutorial_elijah-0.0.3.tar.gz
packaging_tutorial_elijah-0.0.3:
total 48
-rw-rw-rw- 1 roger roger 485 Mar 30 10:27 PKG-INFO
-rw-rw-rw- 1 roger roger 6 Mar 30 09:31 README.md
drwxrwxrwx 2 roger roger 512 Mar 30 10:27 example_pkg
drwxrwxrwx 2 roger roger 512 Mar 30 10:27 packaging_tutorial_elijah.egg-info
-rw-rw-rw- 1 roger roger 42 Mar 30 10:27 setup.cfg
-rw-rw-rw- 1 roger roger 751 Mar 30 10:27 setup.py
opendev$
opendev$ echo "whoops: not yet!"
whoops: not yet!
opendev$
opendev$ rm -r p*3
opendev$ ls -l
total 8
-rw-r--r-- 1 roger roger 1253 May 9 23:08 packaging_tutorial_elijah-0.0.3.tar.gz
opendev$ tar xzf packaging_tutorial_elijah-0.0.3.tar.gz
opendev$ ls -l
total 16
drwxr-xr-x 4 roger roger 512 Mar 30 10:27 packaging_tutorial_elijah-0.0.3
-rw-r--r-- 1 roger roger 1253 May 9 23:08 packaging_tutorial_elijah-0.0.3.tar.gz
opendev$ cd packaging_tutorial_elijah-0.0.3
opendev$ python3.8 setup.py sdiat st --formats gztar
running sdist
running egg_info
writing packaging_tutorial_elijah.egg-info/PKG-INFO
writing dependency_links to packaging_tutorial_elijah.egg-info/dependency_links.txt
writing requirements to packaging_tutorial_elijah.egg-info/requires.txt
writing top-level names to packaging_tutorial_elijah.egg-info/top_level.txt
reading manifest file 'packaging_tutorial_elijah.egg-info/SOURCES.txt'
writing manifest file 'packaging_tutorial_elijah.egg-info/SOURCES.txt'
running check
creating packaging_tutorial_elijah-0.0.3
creating packaging_tutorial_elijah-0.0.3/example_pkg
creating packaging_tutorial_elijah-0.0.3/packaging_tutorial_elijah.egg-info
copying files to packaging_tutorial_elijah-0.0.3...
copying README.md -> packaging_tutorial_elijah-0.0.3
copying setup.cfg -> packaging_tutorial_elijah-0.0.3
copying setup.py -> packaging_tutorial_elijah-0.0.3
copying example_pkg/__init__.py -> packaging_tutorial_elijah-0.0.3/example_pkg
copying example_pkg/hello.py -> packaging_tutorial_elijah-0.0.3/example_pkg
copying packaging_tutorial_elijah.egg-info/PKG-INFO -> packaging_tutorial_elijah-0.0.3/packaging_tutorial_elijah.egg-info
copying packaging_tutorial_elijah.egg-info/SOURCES.txt -> packaging_tutorial_elijah-0.0.3/packaging_tutorial_elijah.egg-info
copying packaging_tutorial_elijah.egg-info/dependency_links.txt -> packaging_tutorial_elijah-0.0.3/packaging_tutorial_elijah.egg-info
copying packaging_tutorial_elijah.egg-info/requires.txt -> packaging_tutorial_elijah-0.0.3/packaging_tutorial_elijah.egg-info
copying packaging_tutorial_elijah.egg-info/top_level.txt -> packaging_tutorial_elijah-0.0.3/packaging_tutorial_elijah.egg-info
Writing packaging_tutorial_elijah-0.0.3/setup.cfg
creating dist
Creating tar archive
removing 'packaging_tutorial_elijah-0.0.3' (and everything under it)
opendev$ ls -l *
-rw-r--r-- 1 roger roger 485 Mar 30 10:27 PKG-INFO
-rw-r--r-- 1 roger roger 6 Mar 30 09:31 README.md
-rw-r--r-- 1 roger roger 42 Mar 30 10:27 setup.cfg
-rw-r--r-- 1 roger roger 751 Mar 30 10:27 setup.py
dist:
total 8
-rw-r--r-- 1 roger roger 1450 May 10 16:32 packaging_tutorial_elijah-0.0.3.tar.gz
example_pkg:
total 8
-rw-r--r-- 1 roger roger 0 Mar 30 09:30 __init__.py
-rw-r--r-- 1 roger roger 96 Mar 30 10:26 hello.py
packaging_tutorial_elijah.egg-info:
total 40
-rw-r--r-- 1 roger roger 467 May 10 16:32 PKG-INFO
-rw-r--r-- 1 roger roger 317 May 10 16:32 SOURCES.txt
-rw-r--r-- 1 roger roger 1 May 10 16:32 dependency_links.txt
-rw-r--r-- 1 roger roger 6 May 10 16:32 requires.txt
-rw-r--r-- 1 roger roger 12 May 10 16:32 top_level.txt
opendev$
opendev$
opendev$ cd dist
opendev$ ls -l
total 8
-rw-r--r-- 1 roger roger 1450 May 10 16:32 packaging_tutorial_elijah-0.0.3.tar.gz
opendev$ python3.8
Python 3.8.8 (default, Apr 19 2021, 10:23:47)
[Clang 10.0.1 ] on openbsd6
Type "help", "copyright", "credits" or "license" for more information.
[?1034h>>> import tarfile
tarfile.open(name='packaging_tutorial_elijah-0.0.3.tar.gz').extractall()
exit()
opendev$ ls -l *exit()
-rw-r--r-- 1 roger roger 1450 May 10 16:32 packaging_tutorial_elijah-0.0.3.tar.gz
packaging_tutorial_elijah-0.0.3:
total 48
-rw-r--r-- 1 roger roger 467 May 10 16:32 PKG-INFO
-rw-r--r-- 1 roger roger 6 Mar 30 09:31 README.md
drwxr-xr-x 2 roger roger 512 May 10 16:32 example_pkg
drwxr-xr-x 2 roger roger 512 May 10 16:32 packaging_tutorial_elijah.egg-info
-rw-r--r-- 1 roger roger 38 May 10 16:32 setup.cfg
-rw-r--r-- 1 roger roger 751 Mar 30 10:27 setup.py
opendev$
opendev$ cd pk ackaging_tutorial_elijah-0.0.3
opendev$ python3.8 setup.py install --user
running install
running bdist_egg
running egg_info
writing packaging_tutorial_elijah.egg-info/PKG-INFO
writing dependency_links to packaging_tutorial_elijah.egg-info/dependency_links.txt
writing requirements to packaging_tutorial_elijah.egg-info/requires.txt
writing top-level names to packaging_tutorial_elijah.egg-info/top_level.txt
reading manifest file 'packaging_tutorial_elijah.egg-info/SOURCES.txt'
writing manifest file 'packaging_tutorial_elijah.egg-info/SOURCES.txt'
installing library code to build/bdist.openbsd-6.9-amd64/egg
running install_lib
running build_py
creating build
creating build/lib
creating build/lib/example_pkg
copying example_pkg/__init__.py -> build/lib/example_pkg
copying example_pkg/hello.py -> build/lib/example_pkg
creating build/bdist.openbsd-6.9-amd64
creating build/bdist.openbsd-6.9-amd64/egg
creating build/bdist.openbsd-6.9-amd64/egg/example_pkg
copying build/lib/example_pkg/__init__.py -> build/bdist.openbsd-6.9-amd64/egg/example_pkg
copying build/lib/example_pkg/hello.py -> build/bdist.openbsd-6.9-amd64/egg/example_pkg
byte-compiling build/bdist.openbsd-6.9-amd64/egg/example_pkg/__init__.py to __init__.cpython-38.pyc
byte-compiling build/bdist.openbsd-6.9-amd64/egg/example_pkg/hello.py to hello.cpython-38.pyc
creating build/bdist.openbsd-6.9-amd64/egg/EGG-INFO
copying packaging_tutorial_elijah.egg-info/PKG-INFO -> build/bdist.openbsd-6.9-amd64/egg/EGG-INFO
copying packaging_tutorial_elijah.egg-info/SOURCES.txt -> build/bdist.openbsd-6.9-amd64/egg/EGG-INFO
copying packaging_tutorial_elijah.egg-info/dependency_links.txt -> build/bdist.openbsd-6.9-amd64/egg/EGG-INFO
copying packaging_tutorial_elijah.egg-info/requires.txt -> build/bdist.openbsd-6.9-amd64/egg/EGG-INFO
copying packaging_tutorial_elijah.egg-info/top_level.txt -> build/bdist.openbsd-6.9-amd64/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating dist
creating 'dist/packaging_tutorial_elijah-0.0.3-py3.8.egg' and adding 'build/bdist.openbsd-6.9-amd64/egg' to it
removing 'build/bdist.openbsd-6.9-amd64/egg' (and everything under it)
Processing packaging_tutorial_elijah-0.0.3-py3.8.egg
Copying packaging_tutorial_elijah-0.0.3-py3.8.egg to /home/roger/.local/lib/python3.8/site-packages
Adding packaging-tutorial-elijah 0.0.3 to easy-install.pth file
Installed /home/roger/.local/lib/python3.8/site-packages/packaging_tutorial_elijah-0.0.3-py3.8.egg
Processing dependencies for packaging-tutorial-elijah==0.0.3
Searching for numpy
Reading https://pypi.org/simple/numpy/
Download error on https://pypi.org/simple/numpy/: [Errno -5] no address associated with name -- Some packages may not be found!
Couldn't find index page for 'numpy' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.org/simple/
Download error on https://pypi.org/simple/: [Errno -5] no address associated with name -- Some packages may not be found!
No local packages or working download links found for numpy
error: Could not find suitable distribution for Requirement.parse('numpy')
opendev$
opendev$
opendev$ ls ~/.local
opendev$ ls -l ~/.local/lib/python3.. 8/site-packages
total 16
-rw-r--r-- 1 roger roger 44 May 10 16:37 easy-install.pth
-rw-r--r-- 1 roger roger 2223 May 10 16:37 packaging_tutorial_elijah-0.0.3-py3.8.egg
opendev$ exit()
opendev$ exit
Script done on Mon May 10 16:39:31 2021