Cleanning up setup.py
This commit is contained in:
@@ -1,18 +1,15 @@
|
||||
# Python imports
|
||||
from setuptools import setup, Extension
|
||||
import gi
|
||||
gi.require_version("GdkPixbuf", "2.0")
|
||||
|
||||
from gi.repository import GdkPixbuf
|
||||
from gi.repository import GObject
|
||||
|
||||
pkg_config_args = [
|
||||
"--cflags", "--libs",
|
||||
"gdk-pixbuf-2.0",
|
||||
"cairo"
|
||||
]
|
||||
|
||||
from subprocess import check_output
|
||||
|
||||
# Lib imports
|
||||
|
||||
# Application imports
|
||||
|
||||
|
||||
|
||||
pkg_config_args = ["gdk-pixbuf-2.0", "cairo"]
|
||||
|
||||
def get_pkgconfig_flags(flag_type):
|
||||
return check_output(["pkg-config", flag_type] + pkg_config_args).decode().split()
|
||||
|
||||
|
Reference in New Issue
Block a user