aboutsummaryrefslogtreecommitdiff
path: root/Python/setup.py
diff options
context:
space:
mode:
Diffstat (limited to 'Python/setup.py')
-rw-r--r--Python/setup.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Python/setup.py b/Python/setup.py
index 8d4c5cd12..5f762dabd 100644
--- a/Python/setup.py
+++ b/Python/setup.py
@@ -9,16 +9,16 @@ import argparse
from distutils.core import setup
-argparser = argparse.ArgumentParser(add_help=False)
-argparser.add_argument('--with-libwarpx', action='store_true', help='Install libwarpx. This option is only used by the makefile.')
-args, unknown = argparser.parse_known_args()
-sys.argv = [sys.argv[0]] + unknown
-
try:
from distutils.command.build_py import build_py_2to3 as build_py
except ImportError:
from distutils.command.build_py import build_py
+argparser = argparse.ArgumentParser(add_help=False)
+argparser.add_argument('--with-libwarpx', action='store_true', help='Install libwarpx. This option is only used by the makefile.')
+args, unknown = argparser.parse_known_args()
+sys.argv = [sys.argv[0]] + unknown
+
if args.with_libwarpx:
package_data = {'pywarpx' : ['libwarpx.so']}
else: