Skip to content

Conversation

@bastelfreak
Copy link
Member

This is required at least on Arch Linux because distutils is provided by python-setuptools, not python:

https://gitlab.archlinux.org/archlinux/packaging/packages/thefuck/-/issues/1

Pull Request (PR) description

This Pull Request (PR) fixes the following issues

@bastelfreak bastelfreak added the enhancement New feature or request label Aug 21, 2024
@bastelfreak bastelfreak force-pushed the arch2 branch 2 times, most recently from d510419 to da45f01 Compare August 21, 2024 09:21
This is required at least on Arch Linux because distutils is provided by
python-setuptools, not python:

https://gitlab.archlinux.org/archlinux/packaging/packages/thefuck/-/issues/1
Stdlib::Absolutepath $anaconda_install_path = '/opt/python',
Boolean $manage_scl = true,
Optional[Python::Umask] $umask = undef,
Boolean $manage_setuptools = $facts['os']['family'] ? { 'Archlinux' => true, default => false, },
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could also just do

Suggested change
Boolean $manage_setuptools = $facts['os']['family'] ? { 'Archlinux' => true, default => false, },
Boolean $manage_setuptools = $facts['os']['family'] == 'Archlinux',


if facts[:os]['family'] == 'Archlinux'
it { is_expected.not_to contain_package('pip') }
it { is_expected.to contain_package('python-setuptools') }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
it { is_expected.to contain_package('python-setuptools') }
it { is_expected.to contain_package('python-distutils-extra') }

it { is_expected.to contain_package('python-setuptools') }
else
it { is_expected.to contain_package('pip') }
it { is_expected.not_to contain_package('python-setuptools') }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
it { is_expected.not_to contain_package('python-setuptools') }
it { is_expected.not_to contain_package('python-distutils-extra') }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request merge-conflicts

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants