| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
Make distutils_install_for_testing set PATH so that newly-installed
scripts are available in the testing environment. Make PATH local
in all sub-phases to make modifications safe.
Signed-off-by: Michał Górny <mgorny@gentoo.org>
|
|
|
|
|
| |
Closes: https://bugs.gentoo.org/730426
Signed-off-by: Michał Górny <mgorny@gentoo.org>
|
|
|
|
|
|
|
| |
Require minimum nose/pytest versions in distutils_enable_tests.
This should save us some annoying bug reports from outdated systems.
Signed-off-by: Michał Górny <mgorny@gentoo.org>
|
|
|
|
| |
Signed-off-by: Michał Górny <mgorny@gentoo.org>
|
|
|
|
|
|
|
| |
It didn't fail under nonfatal (e.g. by virtx) if the test failed.
Closes: https://github.com/gentoo/gentoo/pull/15590
Signed-off-by: Michał Górny <mgorny@gentoo.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Explicitly pass --skip-build in order to prevent distutils from
rebuilding files when installing. This is especially relevant to some
packages that build extensions, and the extensions get built again
in src_install().
Technically, this can break some customized build systems that write
implementation-specific data into source directory, and right now
the implied rebuild caused it to be rewritten when installing. With
this patch, the newest version of the file would be installed for all
interpreters. I am not aware of any such packages, though.
Signed-off-by: Michał Górny <mgorny@gentoo.org>
|
|
|
|
| |
Signed-off-by: Michał Górny <mgorny@gentoo.org>
|
|
|
|
|
| |
Closes: https://bugs.gentoo.org/712502
Signed-off-by: Michał Górny <mgorny@gentoo.org>
|
|
|
|
| |
Signed-off-by: Michał Górny <mgorny@gentoo.org>
|
|
|
|
|
|
|
|
| |
All the share-related issues should have been fixed by the PyPy patch
by now, and since PyPy target is not stable, there is really no need
to be very graceful here.
Signed-off-by: Michał Górny <mgorny@gentoo.org>
|
|
|
|
|
|
|
|
| |
Stop requiring ebuilds to call distutils-r1_python_install_all default
function. It just calls einstalldocs these days, and it is unlikely
that more magic will ever be added there.
Signed-off-by: Michał Górny <mgorny@gentoo.org>
|
|
|
|
| |
Signed-off-by: Michał Górny <mgorny@gentoo.org>
|
|
|
|
| |
Signed-off-by: Michał Górny <mgorny@gentoo.org>
|
|
|
|
|
| |
Closes: https://bugs.gentoo.org/704522
Signed-off-by: Michał Górny <mgorny@gentoo.org>
|
|
|
|
| |
Signed-off-by: Michał Górny <mgorny@gentoo.org>
|
|
|
|
| |
Signed-off-by: Michał Górny <mgorny@gentoo.org>
|
|
|
|
|
|
| |
Closes: https://bugs.gentoo.org/705362
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Signed-off-by: Sebastian Pipping <sping@gentoo.org>
|
|
|
|
|
|
|
|
|
| |
Add a new DISTUTILS_USE_SETUPTOOLS option to permit manually setting
the dependencies correctly and suppressing the check.
Requested by Arfrever.
Signed-off-by: Michał Górny <mgorny@gentoo.org>
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add a new DISTUTILS_USE_SETUPTOOLS top variable, and make it default
to BDEPEND-ing on dev-python/setuptools (which should be correct
for the majority of packages). Packages that either need RDEPEND
or no dependency at all can override it.
Also add a check for correct value in esetup.py. This should make it
easy for developers to adjust the new variable in their packages.
Signed-off-by: Michał Górny <mgorny@gentoo.org>
|
|
|
|
|
|
|
|
|
|
|
| |
When any-r1 API is used for *_all sub-phases, an implementation that
was not selected by the user may be used. In this case,
DISTUTILS_IN_SOURCE_BUILD will not create the BUILD_DIR for this
implementation; however, the phase runner will still try to enter it
and fail. Handle this gracefully by falling back to ${S}.
Closes: https://bugs.gentoo.org/701506
Signed-off-by: Michał Górny <mgorny@gentoo.org>
|
|
|
|
|
|
|
| |
Add a helper function to easily take care of the most common
dev-python/sphinx usage for HTML doc building.
Signed-off-by: Michał Górny <mgorny@gentoo.org>
|
|
|
|
| |
Signed-off-by: Michał Górny <mgorny@gentoo.org>
|
|
|
|
|
|
|
| |
Do not set IUSE or other variables if the test runner does not have
any deps, and RDEPEND is empty.
Signed-off-by: Michał Górny <mgorny@gentoo.org>
|
|
|
|
|
|
|
| |
Add a helpful function to handle adding common stuff for the most common
test runners.
Signed-off-by: Michał Górny <mgorny@gentoo.org>
|
|
|
|
|
| |
Closes: https://bugs.gentoo.org/698024
Signed-off-by: Michał Górny <mgorny@gentoo.org>
|
|
|
|
| |
Signed-off-by: Michał Górny <mgorny@gentoo.org>
|
|
|
|
| |
Signed-off-by: Michał Górny <mgorny@gentoo.org>
|
|
|
|
|
|
|
|
| |
This works around sandbox failures with python3.7, which moved from
/usr/$(get_libdir) to /usr/lib.
Bug: https://bugs.gentoo.org/671948
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Python 3.5+ introduces parallel build support in distutils. Take
advantage of that by passing appropriate -j option. Since distutils
does not support an equivalent of --load-average, default to the number
of CPUs+1 when unspecified.
In order to avoid breaking stable systems, introduce the new behavior
only for EAPI 7 ebuilds, or older EAPI ebuilds with unstable
implementations (Python 3.7 and PyPy 3).
|
|
|
|
|
| |
Support EAPI 7. Move PYTHON_DEPS from DEPEND to BDEPEND. Fix trailing
slash uses for D/ED.
|
| |
|
|
|
|
|
| |
Limit xdg_environment_reset call to EAPIs 5 & 6. It should no longer
be necessary with ENV_UNSET done in EAPI 7.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Rewrite the python_*_all() phase running code to reuse python_setup
instead of hacking on top of python_foreach_impl. The resulting code
is a bit simpler but most importantly, it avoids duplication of code
from python-r1 and ensures that distutils-r1 common phases are directly
altered by changes in python_setup.
The code still needs to reimplement some of the internals. However, it
is mostly limited to code specific to distutils-r1, and should be more
maintainable.
|
|
|
|
|
| |
The variable was deprecated and the warning put in place in Dec 2014. It
is no longer used in any ebuild in ::gentoo.
|
|
|
|
| |
Update the missed occurence of pattern matching with the new framework.
|
|
|
|
|
|
|
| |
Prefix the _clean_egg_info function with an appropriate namespace,
and document its purpose with eclassdoc format. Be more verbose
on the exact problem being solved; remove URL to old upstream bug
tracker that no longer exists.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add a check for *-nspkg.pth files indicating implicit setuptools
namespace hack. While they kept namespaces somewhat working without
requiring explicit support in ebuilds, they were unreliable. They
frequently required additional hacks (distutils_install_for_testing) to
get the tests working, and they have proven even more broken for Python
3.5+.
For this reason, those files were deprecated in favor of proper,
explicit namespace support. If they are found to exist, the developer
should ensure to remove them to avoid issues.
|
|
|
|
| |
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
|
| |
|
|
|
|
|
| |
In setuptools and new python releases, this causes the SOURCES.txt to include all
egg-info files with absolute paths. Without this setting these files are not included in that file and everything works and installs correctly.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Currently distutils_install_for_testing does not install the complete
egg-info into ${TEST_DIR}. This was first noticed by W. Trevor King
and reported in bug #524322. Based on info found in the related upstream
setuptools bug I added the necessary call to setuptools to create
the complete egg_info.
Without this certain packages (like cryptography) fail during testing
because they use introspection but the metadata isn't available.
Bug: https://bugs.gentoo.org/524322
|
|
|
|
| |
Bug: https://bugs.gentoo.org/577704
|
|
|
|
|
| |
This was only necessary when we ran phases in parallel.
Also, PMS says this variable should not be modified.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Also remove .pydistutils.cfg from HOME before returning.
This config should only be needed when we are invoking setup.py. The
esetup.py wrapper provides a normalized way for doing this; if ebuilds
call setup.py without the wrapper, they are now also responsible for
setting the build directory if necessary.
This change allows us to stop overriding the HOME variable, and prevents
leakage of eclass-specifc configuration to the general ebuild
environment.
|
|
|
|
| |
This just looks nicer in build logs.
|
|
|
|
|
|
| |
This reverts commit 3bcfb71425f15e237d6002ff3626e2e169df3f05.
This change can break ebuilds that call esetup.py in src_test.
|
|
|
|
|
| |
This was only necessary when we ran phases in parallel.
Also, PMS says this variable should not be modified.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Do not apply PATCHES and user patches (either via the EAPI 6 default or
pre-EAPI 5 code) when DISTUTILS_OPTIONAL is being used. In this case,
distutils functions are usually called conditionally, in a subdirectory,
while both PATCHES and user patches are usually intended to be applied
top-level.
There is no ebuild relying on distutils-r1_src_prepare applying patches
with DISTUTILS_OPTIONAL. In fact, there are ebuilds which work around
this behavior.
|