I'm sorry, I had relics of an older build process present when I thought this little hack could be removed now. I readded the `echo $pkgver > conda/.version` to the build steps.
Search Criteria
Package Details: python-conda 23.1.0-1
Git Clone URL: | https://aur.archlinux.org/python-conda.git (read-only, click to copy) |
---|---|
Package Base: | python-conda |
Description: | OS-agnostic, system-level binary package manager and ecosystem https://conda.io |
Upstream URL: | https://github.com/conda/conda |
Licenses: | BSD |
Provides: | python-conda, python-conda-env |
Submitter: | cyrevolt |
Maintainer: | iyanmv |
Last Packager: | specter119 |
Votes: | 29 |
Popularity: | 0.83 |
First Submitted: | 2016-04-08 07:41 (UTC) |
Last Updated: | 2023-03-02 04:36 (UTC) |
Dependencies (8)
Required by (3)
Sources (1)
cyrevolt commented on 2016-11-30 19:42 (UTC)
eigengrau commented on 2016-11-30 08:01 (UTC)
This currently fails to build for me, since for some reason conda fails to create the version string inside setup.py.
==> Starting package()...
running install
running build
running build_py
UPDATING build/lib/conda/__init__.py
WRITING build/lib/conda/.version with version None
Traceback (most recent call last):
File "setup.py", line 90, in <module>
zip_safe=False,
File "/usr/lib/python3.5/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.5/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.5/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/usr/lib/python3.5/site-packages/setuptools/command/install.py", line 61, in run
return orig.install.run(self)
File "/usr/lib/python3.5/distutils/command/install.py", line 539, in run
self.run_command('build')
File "/usr/lib/python3.5/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.5/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/usr/lib/python3.5/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/usr/lib/python3.5/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.5/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/tmp/makepkg/python-conda/src/conda-4.2.12/conda/_vendor/auxlib/packaging.py", line 206, in run
write_version_file(target_dir, self.distribution.metadata.version)
File "/tmp/makepkg/python-conda/src/conda-4.2.12/conda/_vendor/auxlib/packaging.py", line 198, in write_version_file
f.write(version)
TypeError: write() argument must be str, not None
Pinned Comments
cyrevolt commented on 2020-12-14 23:01 (UTC) (edited on 2020-12-14 23:18 (UTC) by cyrevolt)
Errors
If you see something like this, the "error" is that AUR packages are not rebuilt when the system Python version is upgraded, which just happened again with 3.9. You need to manually upgrade each and every Python package from AUR, unfortunately. That is quite a caveat, because not everyone notices that something specific like Python is upgraded when they run
pacman -Syu
and see a list of 200 or more packages. This also happens with Node.js and what not.Solution
So I have just bumped the package here as well as
python-conda-build
, which triggers updates with e.g.yay -Su
. However, some dependencies may not have a new version now. What we could do for this case is to increasepkgrel
for those other packages. It feels hacky, but at least it works.Addendum
I am sorry for the inconvenience. Now the remaining problem is: Because of the bunch of dependencies and dependencies of dependencies, it is easy to miss one of them. =) Secondly, I do not own all the dependencies, so some will need manual maintenance either way, unfortunately. For example, you will need to reinstall
python-glob2-git
. Please let us know here if anyone of you runs into issues and we will try to help.Notes
To rebuild, you need to pass the
--rebuild
option.Example:
yay -S python-glob2-git --rebuild