From db44c27389a8c6f61082afb56addbff87c8c374e Mon Sep 17 00:00:00 2001 From: Robin Adili <robin.adili@inria.fr> Date: Tue, 22 Sep 2020 15:34:51 +0200 Subject: [PATCH] rename builder and specify it in pyproject.toml --- builder.py | 10 +++++----- project.py | 2 ++ pyproject.toml | 1 + 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/builder.py b/builder.py index 927dad3..17d6b26 100644 --- a/builder.py +++ b/builder.py @@ -29,13 +29,13 @@ from distutils.log import ERROR, INFO, set_threshold import os import sys -from .buildable import BuildableModule -from .builder import Builder -from .exceptions import UserException -from .installable import Installable +from sipbuild.buildable import BuildableModule +from sipbuild.builder import Builder +from sipbuild.exceptions import UserException +from sipbuild.installable import Installable -class DistutilsBuilder(Builder): +class FBXSDKBuilder(Builder): """ The implementation of a distutils-based project builder. """ def build_executable(self, buildable, *, fatal=True): diff --git a/project.py b/project.py index 3de3e11..ebcf21b 100644 --- a/project.py +++ b/project.py @@ -5,6 +5,8 @@ import sys from sipbuild import Option, Project + + class FBXSDKPyProject(Project): """ A project that adds an additional configuration options to specify the locations of the fib header file and library. diff --git a/pyproject.toml b/pyproject.toml index 3e12cf8..bfcceda 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -22,3 +22,4 @@ linux-libraries = ["xml2", "z"] linux-static-libraries = ["build/fbxsdk/lib/all/x64/release/libfbxsdk.a"] win-libraries = ["libfbxsdk-md", "zlib-md", "libxml2-md", "Advapi32", "Wininet"] win-py36-libraries = ["libfbxsdk-mt", "zlib-mt", "libxml2-mt", "Advapi32", "Wininet"] +builder-factory = "builder.py" -- GitLab