So I just tested this, and it failed:
$ sudo pip3 install .
Processing /home/anarcat/src/rapid-photo-downloader
Requirement already satisfied: arrow in /usr/lib/python3/dist-packages (from rapid-photo-downloader==0.9.6)
Requirement already satisfied: colorlog in /usr/lib/python3/dist-packages (from rapid-photo-downloader==0.9.6)
Requirement already satisfied: colour in /usr/lib/python3/dist-packages (from rapid-photo-downloader==0.9.6)
Requirement already satisfied: easygui in /usr/lib/python3/dist-packages (from rapid-photo-downloader==0.9.6)
Requirement already satisfied: gphoto2 in /usr/lib/python3/dist-packages (from rapid-photo-downloader==0.9.6)
Requirement already satisfied: psutil in /usr/local/lib/python3.5/dist-packages (from rapid-photo-downloader==0.9.6)
Requirement already satisfied: pymediainfo in /usr/lib/python3/dist-packages (from rapid-photo-downloader==0.9.6)
Requirement already satisfied: pyprind in /usr/lib/python3/dist-packages (from rapid-photo-downloader==0.9.6)
Requirement already satisfied: python-dateutil in /usr/lib/python3/dist-packages (from rapid-photo-downloader==0.9.6)
Requirement already satisfied: pyxdg in /usr/lib/python3/dist-packages (from rapid-photo-downloader==0.9.6)
Requirement already satisfied: pyzmq in /usr/lib/python3/dist-packages (from rapid-photo-downloader==0.9.6)
Requirement already satisfied: rawkit in /usr/lib/python3/dist-packages (from rapid-photo-downloader==0.9.6)
Requirement already satisfied: sortedcontainers in /usr/lib/python3/dist-packages (from rapid-photo-downloader==0.9.6)
Building wheels for collected packages: rapid-photo-downloader
Running setup.py bdist_wheel for rapid-photo-downloader ... done
Stored in directory: /root/.cache/pip/wheels/4a/e5/29/ab20494b05214ed2b9029e08e070f3f88e28fa0c99994e1473
Successfully built rapid-photo-downloader
Installing collected packages: rapid-photo-downloader
Exception:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/usr/lib/python3/dist-packages/pip/commands/install.py", line 360, in run
prefix=options.prefix_path,
File "/usr/lib/python3/dist-packages/pip/req/req_set.py", line 784, in install
**kwargs
File "/usr/lib/python3/dist-packages/pip/req/req_install.py", line 851, in install
self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
File "/usr/lib/python3/dist-packages/pip/req/req_install.py", line 1064, in move_wheel_files
isolated=self.isolated,
File "/usr/lib/python3/dist-packages/pip/wheel.py", line 247, in move_wheel_files
prefix=prefix,
File "/usr/lib/python3/dist-packages/pip/locations.py", line 153, in distutils_scheme
i.finalize_options()
File "/usr/share/python-wheels/setuptools-32.3.1-py2.py3-none-any.whl/setuptools/command/install.py", line 38, in finalize_options
orig.install.finalize_options(self)
File "/usr/lib/python3.5/distutils/command/install.py", line 388, in finalize_options
('build_lib', 'build_lib'))
File "/usr/lib/python3.5/distutils/cmd.py", line 286, in set_undefined_options
src_cmd_obj = self.distribution.get_command_obj(src_cmd)
File "/usr/lib/python3.5/distutils/dist.py", line 857, in get_command_obj
self._set_command_options(cmd_obj, options)
File "/usr/lib/python3.5/distutils/dist.py", line 901, in _set_command_options
% (source, command_name, option))
distutils.errors.DistutilsOptionError: error in setup.cfg: command 'build' has no such option 'icons'
I had to do make the following change for the build to complete:
diff --git a/setup.cfg b/setup.cfg
index 77700a4..9359cf7 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -2,10 +2,10 @@
universal = 0
[build]
-i18n = True
-help = False
-icons = True
-pod2man = True
+#i18n = True
+#help = False
+#icons = True
+#pod2man = True
[build_i18n]
domain = rapid-photo-downloader
Maybe I’m not using the right setuptools version? Any idea what’s going on here?
Anyways, after that change, I can, indeed, install with pip install .
so that’s great. For some reason, I don’t have that problem when building the Debian package - presumably because it bypasses normal pip install routines…
Also: I see now there are many other non-Python dependencies required, so I understand better why you don’t want to provide a Pip package. It would have nevertheless made my job generally easier though…
I have mostly packaged the missing python dependencies at this point. Those will new to go through the NEW process, which sometimes takes a while, before RPD can be updated in Debian, but hopefully, the next Debian release will ship with an up to date RPD!
Cheers!