Skip to content

Commit

Permalink
Remove config creation from setup.py
Browse files Browse the repository at this point in the history
fixes #41
  • Loading branch information
gmertes committed Apr 19, 2024
1 parent 58b21bb commit 1309b18
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import os

import setuptools
from setuptools.command.install import install


def read(fname):
Expand All @@ -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,
Expand All @@ -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",
Expand Down

0 comments on commit 1309b18

Please sign in to comment.