From 635d8784fa40ca3644a9eecf24974d768c6155c8 Mon Sep 17 00:00:00 2001 From: Remi Lehe Date: Thu, 27 Sep 2018 10:09:57 -0700 Subject: Switch from distutils to setuptools and add dependency --- Python/setup.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'Python/setup.py') 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'] ) -- cgit v1.2.3