aboutsummaryrefslogtreecommitdiff
path: root/python
AgeCommit message (Collapse)AuthorLines
9 daysmodernize: Mark overriding functions as suchHEADmasterAvatar Marvin Schmidt -144/+144
Done using clang-tidy's `modernize-use-override` check
2018-07-05python: Implement and expose Environment::reduced_usernameAvatar Marvin Schmidt -0/+21
It was forgotten in 917cc160a which introduced this pure virtual function in the `Environment` base class: /var/tmp/paludis/build/sys-apps-paludis-scm/work/paludis-scm/python/environment.cc:48:7: note: because the following virtual functions are pure within 'EnvironmentImplementationWrapper': class EnvironmentImplementationWrapper : ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /var/tmp/paludis/build/sys-apps-paludis-scm/work/paludis-scm/paludis/environment_implementation.hh:23:0, from /var/tmp/paludis/build/sys-apps-paludis-scm/work/paludis-scm/paludis/environments/paludis/paludis_environment.hh:23, from /var/tmp/paludis/build/sys-apps-paludis-scm/work/paludis-scm/python/environment.cc:24: /var/tmp/paludis/build/sys-apps-paludis-scm/work/paludis-scm/paludis/environment.hh:427:33: note: virtual std::__cxx11::string paludis::Environment::reduced_username() const virtual std::string reduced_username() const = 0; ^~~~~~~~~~~~~~~~
2017-02-10python: Expose slot(s) accessors of some SlotRequirement classesAvatar Marvin Schmidt -0/+16
Based on the initial work of Michał Górny <mgorny@gentoo.org> Fixes: ticket:1348 Change-Id: Id8e3fa358766caabd219d1926cd8a057304da34d
2017-01-29python: Use complete type decls for boost-1.63.0Avatar Michał Górny -0/+6
Add missing includes to ensure that all types used in python code hav ecomplete declarations (rather than the forward declarations). This is required to build with boost-1.63.0.
2016-12-15python: Ensure to instantiate Set destructorAvatar Michał Górny -0/+1
2016-12-15build: Add missing linkage for Python libsAvatar Michał Górny -1/+9
2016-12-14python: Fix unused arguments warnings (NFC)Avatar Marvin Schmidt -2/+2
Change-Id: I6b8a6ed08f894b963e153bed72aba1f18ebd51dc
2016-12-14build: Fix output name of additional_tests moduleAvatar Marvin Schmidt -1/+1
Change-Id: Ifb8d2fbaa428c6a5df1108ba72103b1d47877035
2016-12-05build: Install bash scripts as 'PROGRAMS'Avatar Heiko Becker -1/+1
...to make them executable.
2016-11-30build: remove autotools based buildAvatar Saleem Abdulrasool -162/+0
There can be only one!
2016-11-30build: introduce cmake based build systemAvatar Saleem Abdulrasool -0/+131
2016-01-17build: cleanup and simplify flags handlingAvatar Saleem Abdulrasool -6/+0
The ruby headers use some idioms which generate warnings when building paludis. Rather than assuming that the associated -Wno-* flags are supported by the compiler frontend, explicitly check for the support when necessary (building the Ruby bindings). This slightly speeds up the build when ruby is disabled, but more importantly, will prevent the accidental usage of these flags more broadly.
2016-01-17build: unconditionally use visibility flagsAvatar Saleem Abdulrasool -1/+0
Remove the last remnants of icc support as the current released versions do not support C++11 and we intend to use clang as the alternate compiler. This cleans up the compile flags to remove the now obsoleted definition (-DPALUDIS_USE_VISIBILITY), the unnecessary compile time checks, and the handling for ICC in the macros.
2015-11-08Unify =* behaviourAvatar David Leverton -1/+1
Gentoo changed =* to mean almost the same thing as it does in Exherbo in bug 560466; the difference being that float-like components aren't treated specially, for example 1.0123 doesn't match a dep saying =1.012*. Since nothing in Exherbo relies on this anyway, just make it the same everywhere.
2015-08-21throw() -> noexceptAvatar Wouter van Kesteren -7/+7
Change-Id: I461abfda8b7297c1bd04f1090f8d58fa96364616 Reviewed-on: https://galileo.mailstation.de/gerrit/1892 Reviewed-by: Saleem Abdulrasool <compnerd@compnerd.org> Reviewed-by: Kylie McClain <somasis@exherbo.org>
2014-09-17Remove 'breaks Portage' codeAvatar Ciaran McCreesh -22/+0
2014-08-28Fix assorted build failures with clangAvatar David Leverton -3/+9
../../../paludis/paludis/util/sequence-impl.hh:162:21: error: expected expression _imp->list.sort<const C_ &>(c); - just a missing "template" ../../paludis/paludis/util/visitor.hh:322:24: error: no viable overloaded '=' result = _unwrapped_visitor.visit(t); [snip] ../../paludis/paludis/mask.cc:43:17: note: in instantiation of function template specialization 'paludis::DeclareAbstractAcceptMethods<paludis::Mask, paludis::TypeListEntry<paludis::UserMask, paludis::TypeListEntry<paludis::UnacceptedMask, paludis::TypeListEntry<paludis::RepositoryMask, paludis::TypeListEntry<paludis::UnsupportedMask, paludis::TypeListTail> > > > >::make_accept_returning<<lambda at ../../paludis/paludis/mask.cc:44:9>, <lambda at ../../paludis/paludis/mask.cc:45:9>, <lambda at ../../paludis/paludis/mask.cc:46:9>, <lambda at ../../paludis/paludis/mask.cc:47:9> >' requested here return mask.make_accept_returning( /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/include/g++-v4/bits/basic_string.h:543:7: note: candidate function not viable: 'this' argument has type 'const std::basic_string<char>', but method is not marked const operator=(const basic_string& __str) [snip] - template argument inferred as const and then used for temporary variable that gets assigned, so needs to be forced non-const In file included from ../../../../paludis/paludis/repositories/e/e_choice_value.cc:24: ../../../../paludis/paludis/util/pool-impl.hh:171:23: error: call to function 'operator==' that is neither visible in the template definition nor found by argument-dependent lookup return _value == static_cast<const ConcretePoolKey<T_> &>(other)._value; [snip] ../../../../paludis/paludis/repositories/e/e_choice_value.cc:147:10: note: 'operator==' should be declared prior to the call site or in namespace 'paludis::erepository' bool operator== (const EChoiceValueParams & a, const EChoiceValueParams & b) - see http://clang.llvm.org/compatibility.html#dep_lookup /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/include/g++-v4/functional:1925:2: error: no matching function for call to object of type 'std::_Bind<std::_Mem_fn<void (paludis::resolver::Decider::*)(const std::shared_ptr<const paludis::resolver::Resolution> &, const std::shared_ptr<const paludis::resolver::Constraint> &, const std::shared_ptr<const paludis::resolver::Decision> &) __attribute__((noreturn)) const> (paludis::resolver::Decider *, std::shared_ptr<paludis::resolver::Resolution>, std::shared_ptr<const paludis::resolver::Constraint>, std::shared_ptr<paludis::resolver::Decision>)>' (*_Base::_M_get_pointer(__functor))( [snip] ../../../paludis/paludis/resolver/decider.cc:936:65: note: in instantiation of function template specialization 'std::function<void ()>::function<std::_Bind<std::_Mem_fn<void (paludis::resolver::Decider::*)(const std::shared_ptr<const paludis::resolver::Resolution> &, const std::shared_ptr<const paludis::resolver::Constraint> &, const std::shared_ptr<const paludis::resolver::Decision> &) __attribute__((noreturn)) const> (paludis::resolver::Decider *, std::shared_ptr<paludis::resolver::Resolution>, std::shared_ptr<const paludis::resolver::Constraint>, std::shared_ptr<paludis::resolver::Decision>)> >' requested here resolution->decision()->accept(WrongDecisionVisitor(std::bind( /usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/include/g++-v4/functional:1211:2: note: candidate template ignored: substitution failure [with _Args = <>]: no matching function for call to object of type 'std::_Mem_fn<void (paludis::resolver::Decider::*)(const std::shared_ptr<const paludis::resolver::Resolution> &, const std::shared_ptr<const paludis::resolver::Constraint> &, const std::shared_ptr<const paludis::resolver::Decision> &) __attribute__((noreturn)) const>' operator()(_Args&&... __args) [snip] - not sure why it doesn't like this, but its nicer with the anonymous function anyway ../../paludis/python/dep_spec.cc:1409:16: error: explicit instantiation of 'paludis::WrappedForwardIterator' must occur in namespace 'paludis' template class WrappedForwardIterator<PythonCompositeDepSpec::ConstIteratorTag, ../../paludis/python/exception.cc:32:16: error: explicit instantiation of 'paludis::Singleton' must occur in namespace 'paludis' template class Singleton<ExceptionRegister>; ../../paludis/ruby/paludis_ruby.cc:38:16: error: explicit instantiation of 'paludis::Singleton' must occur in namespace 'paludis' template class Singleton<RegisterRubyClass>; - self-explanatory
2013-12-29Use `sphinx` (which is Pythons 2 and 3 compatible) to build Python API ↵Avatar zaufi -27/+27
documentation instead of Python 2 only `epydoc`.
2013-12-29Make it Python3 compatibleAvatar zaufi -37/+100
2013-08-27Another attempt at new Boost compatibilityAvatar David Leverton -18/+8
Instead of weird hacks with const_cast that aren't compatible with Boost's get_pointer implementation for shared_ptr, use non-const pointers as the representation and register conversions, like most of the classes did already.
2013-08-26Hopefully fix Python for newer BoostAvatar David Leverton -0/+3
1.53 introduced std::shared_ptr support for boost::get_pointer, conflicting with our implementation.
2013-05-23Move code aroundAvatar Ciaran McCreesh -1/+0
2013-05-22Use nullptrAvatar Ciaran McCreesh -9/+4
2013-05-22Switch to std mutex and condition_variableAvatar Ciaran McCreesh -95/+96
2013-03-24Fix Python and Ruby for 0e62614 and .gitignore new testAvatar David Leverton -7/+14
2013-02-09Fix Python with GCC 4.7Avatar David Leverton -7/+7
Fixes: ticket:1259
2012-11-16Fix test failsAvatar Ciaran McCreesh -2/+2
2012-11-16Introduce SlotUnknownRewrittenRequirementAvatar David Leverton -0/+21
2012-09-14Refactor to allow subslotsAvatar Ciaran McCreesh -33/+83
2012-08-05Allow skipping uninstall phases.Avatar Ciaran McCreesh -1/+2
Fixes: ticket:1251
2012-05-12Add AtMostOneDepSpecAvatar Ciaran McCreesh -0/+58
2012-03-03Silence unused warningAvatar Ciaran McCreesh -22/+22
2012-03-03Silence unused warningAvatar Ciaran McCreesh -1/+1
2012-03-03Silence unused warningAvatar Ciaran McCreesh -3/+3
2012-03-03Silence unused warningAvatar Ciaran McCreesh -4/+4
2012-03-03Silence shadowing warningAvatar Ciaran McCreesh -2/+2
2012-01-01Change URLs to exherbo.orgAvatar Ciaran McCreesh -12/+12
2011-10-14Use nice new toupper/tolower functionsAvatar David Leverton -3/+2
2011-09-14Maintainers as objectsAvatar Ciaran McCreesh -0/+44
2011-09-09Wrap Sequence<string> keysAvatar Ciaran McCreesh -6/+7
2011-09-04Contents is not a MetadataKeyAvatar Ciaran McCreesh -92/+0
2011-09-04Don't test CONTENTS as a keyAvatar Ciaran McCreesh -4/+0
2011-09-04Remove PackageID::contents_keyAvatar Ciaran McCreesh -38/+0
2011-09-04PackageID::contentsAvatar Ciaran McCreesh -1/+7
2011-08-06Better tracking of choice originsAvatar Ciaran McCreesh -5/+8
2011-07-16Check for null explicitlyAvatar Ciaran McCreesh -0/+5
2011-07-16Wrap SlotRequirementAvatar Ciaran McCreesh -7/+159
2011-07-13Wrap reduced_uid/gidAvatar Ciaran McCreesh -0/+14
2011-07-06Wrap PackageID::uniquely_identifying_specAvatar Ciaran McCreesh -0/+10
2011-06-16Kill NoConfigEnvironment with fireAvatar Ciaran McCreesh -54/+0