$(AM_CFLAGS) \
$(PYTHON_DEVEL_CFLAGS) \
$(CAP_CFLAGS) \
- $(SOLV_CFLAGS) \
-Wno-cast-function-type
_pakfire_la_LDFLAGS = \
_pakfire_la_LIBADD = \
$(PYTHON_DEVEL_LIBS) \
$(PAKFIRE_LIBS) \
- $(CAP_LIBS) \
- $(SOLV_LIBS)
+ $(CAP_LIBS)
# ------------------------------------------------------------------------------
static PyMethodDef pakfireModuleMethods[] = {
{"performance_index", (PyCFunction)performance_index, METH_VARARGS, NULL},
- {"version_compare", (PyCFunction)version_compare, METH_VARARGS, NULL},
{"get_capabilities", (PyCFunction)get_capabilities, METH_VARARGS, NULL},
{"native_arch", (PyCFunction)_pakfire_native_arch, METH_NOARGS, NULL },
{"arch_supported_by_host", (PyCFunction)_pakfire_arch_supported_by_host, METH_VARARGS, NULL },
#include "package.h"
#include "util.h"
-PyObject *version_compare(PyObject *self, PyObject *args) {
- Pool *pool;
- const char *evr1, *evr2;
-
- if (!PyArg_ParseTuple(args, "Oss", &pool, &evr1, &evr2)) {
- /* XXX raise exception */
- return NULL;
- }
-
- int ret = pool_evrcmp_str(pool, evr1, evr2, EVRCMP_COMPARE);
-
- return Py_BuildValue("i", ret);
-}
-
static unsigned long fibonnacci(const clock_t* deadline) {
clock_t now = clock();
#include "pakfire.h"
-extern PyObject *version_compare(PyObject *self, PyObject *args);
extern PyObject* performance_index(PyObject* self, PyObject* args);
PyObject* PyList_FromPackageList(PakfirePackageList packagelist);