aboutsummaryrefslogtreecommitdiff
path: root/Python/setup.py
diff options
context:
space:
mode:
authorGravatar Remi Lehe <remi.lehe@normalesup.org> 2018-09-27 10:09:57 -0700
committerGravatar Remi Lehe <remi.lehe@normalesup.org> 2018-09-27 10:09:57 -0700
commit635d8784fa40ca3644a9eecf24974d768c6155c8 (patch)
treed29db88fea60a3540f04a7570b1d3acf24730341 /Python/setup.py
parent1be490f25c2cd54d296dec8bcdc872c7a155be84 (diff)
downloadWarpX-635d8784fa40ca3644a9eecf24974d768c6155c8.tar.gz
WarpX-635d8784fa40ca3644a9eecf24974d768c6155c8.tar.zst
WarpX-635d8784fa40ca3644a9eecf24974d768c6155c8.zip
Switch from distutils to setuptools and add dependency
Diffstat (limited to 'Python/setup.py')
-rw-r--r--Python/setup.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/Python/setup.py b/Python/setup.py
index e68870809..76e7cdd18 100644
--- a/Python/setup.py
+++ b/Python/setup.py
@@ -7,12 +7,7 @@ setup.py file for WarpX
import sys
import argparse
-from distutils.core import setup
-
-try:
- from distutils.command.build_py import build_py_2to3 as build_py
-except ImportError:
- from distutils.command.build_py import build_py
+from setuptools import setup
argparser = argparse.ArgumentParser(add_help=False)
argparser.add_argument('--with-libwarpx', type=int, default=None, help='Install libwarpx with the given value as DIM. This option is only used by the makefile.')
@@ -29,5 +24,5 @@ setup (name = 'pywarpx',
package_dir = {'pywarpx':'pywarpx'},
description = """Wrapper of WarpX""",
package_data = package_data,
- cmdclass={'build_py': build_py}
+ install_requires=['picmistandard']
)