Skip to content

Commit

Permalink
fix setup
Browse files Browse the repository at this point in the history
  • Loading branch information
vict0rsch committed Jan 10, 2024
1 parent ca497e8 commit 3f025ac
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,31 @@
LICENSE file in the root directory of this source tree.
"""

from setuptools import find_packages, setup
from distutils.util import convert_path
from pathlib import Path

from setuptools import setup


def make_ocpmodels_package_dict():
dirs = [
convert_path(str(p))
for p in Path("./ocpmodels/").glob("**")
if (p / "__init__.py").exists()
]
pkgs = [d.replace("/", ".") for d in dirs]
return {p: d for p, d in zip(pkgs, dirs)}


pkg_dict = make_ocpmodels_package_dict()
pkg_dict["ocdata"] = convert_path("ocdata")

setup(
name="ocp-models",
version="0.0.3",
name="ocpmodels",
version="0.0.1",
description="Machine learning models for use in catalysis as part of the Open Catalyst Project",
url="https://github.com/Open-Catalyst-Project/ocp",
packages=find_packages(),
packages=list(pkg_dict.keys()),
package_dir=pkg_dict,
include_package_data=True,
)

0 comments on commit 3f025ac

Please sign in to comment.