-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
46 lines (36 loc) · 1.12 KB
/
setup.py
File metadata and controls
46 lines (36 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import os
import sys
from pip._internal import main as pip_main
from setuptools import setup, find_packages
try:
from lammps import lammps, PyLammps
except ImportError:
print("It seems that you don't have 'lammps' module.")
sys.exit(1)
try:
import mpi4py
except ImportError:
print("Get and build mpi4py...")
pip_command = ["install"]
if "--user" in sys.argv:
pip_command.append("--user")
pip_command.append("git+https://github.com/mpi4py/mpi4py.git")
pip_main(pip_command)
with open("README.md", "r") as f:
long_description = f.read()
version_ns = {}
with open(os.path.join("wapylmp", "_version.py")) as f:
exec(f.read(), {}, version_ns)
setup(
name="wapylmp",
version=version_ns["__version__"],
description="My little wrapper for PyLammps",
author="Takayuki Kobayashi",
author_email="iris.takayuki@gmail.com",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/irisTa56/wapylmp.git",
packages=find_packages(),
classifiers=(
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU General Public License (GPL)"))