diff --git a/.github/workflows/build-wheels.yml b/.github/workflows/build-wheels.yml index d46345ba..78e83e37 100644 --- a/.github/workflows/build-wheels.yml +++ b/.github/workflows/build-wheels.yml @@ -6,6 +6,9 @@ on: pull_request: branches: - master + push: + branches: + - feat-disable-features-for-linux-wheels release: types: - published @@ -37,7 +40,7 @@ jobs: strategy: fail-fast: false matrix: - os: [windows-latest, macos-latest] + os: [windows-latest, macos-latest, ubuntu-latest] steps: - uses: actions/checkout@v4 diff --git a/PhotoshopAPI/src/Util/Logger.h b/PhotoshopAPI/src/Util/Logger.h index 705ecd36..4618981b 100644 --- a/PhotoshopAPI/src/Util/Logger.h +++ b/PhotoshopAPI/src/Util/Logger.h @@ -125,12 +125,17 @@ class Logger { Logger(const Logger&) = delete; Logger& operator=(const Logger&) = delete; +// Disable these symbols so we can build linux wheels, means we wont have a time for our logs +#if defined(__GNUC__) && (__GNUC__ < 13) + inline const std::string getTime() { return ""; }; +#else inline const std::string getTime() { auto const time = std::chrono::current_zone() ->to_local(std::chrono::system_clock::now()); return std::format("{:%Y-%m-%d %X}", time); } +#endif inline const std::string createMessage(std::string time, std::string task, const std::string& message) diff --git a/setup.py b/setup.py index fd2d8e02..9cbaedf3 100644 --- a/setup.py +++ b/setup.py @@ -166,5 +166,5 @@ def build_extension(self, ext: CMakeExtension) -> None: install_requires= [ "numpy>=1.26" ], - python_requires=">=3.7", + python_requires=">=3.11", ) \ No newline at end of file