From 1309b1804887777cc029026b354509cd546e9357 Mon Sep 17 00:00:00 2001 From: Gert Mertes Date: Fri, 19 Apr 2024 13:40:18 +0100 Subject: [PATCH] Remove config creation from setup.py fixes #41 --- setup.py | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/setup.py b/setup.py index 8ffbb8e..95e64b5 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,6 @@ import os import setuptools -from setuptools.command.install import install def read(fname): @@ -30,16 +29,6 @@ def read(fname): assert version -class PostInstall(install): - def run(self): - from ai_models.remote.config import config_exists, create_config - - if not config_exists(): - create_config() - - install.run(self) - - setuptools.setup( name="ai-models", version=version, @@ -52,11 +41,9 @@ def run(self): url="https://github.com/ecmwf-lab/ai-models", packages=setuptools.find_packages(), include_package_data=True, - cmdclass={ - "install": PostInstall, - }, install_requires=[ "entrypoints", + "requests", "climetlab>=0.20.11", "multiurl", "ecmwflibs>=0.6.1",