File setup.py.patch of Package python-meep
diff --git a/setup.py b/setup.py
index 5f59c72..2c9c0d4 100755
--- a/setup.py
+++ b/setup.py
@@ -10,7 +10,7 @@ import sys,getopt
#User can specify an include directory with -I : this will be passed to SWIG. If no such parameter is specified, then -I/usr/include will be passed to SWIG
#User can specify a directory for the libraries with -L : If no such parameter is specified, then -I/usr/lib is used
-optlist, a = getopt.getopt(sys.argv[2:], 'I:L:',['all'])
+optlist, a = getopt.getopt(sys.argv[2:], 'I:L:',['all', 'root=', 'record-rpm=', 'prefix='])
includeDir = "/usr/include"
libDir = "/usr/lib"
@@ -29,8 +29,8 @@ for opt in optlist:
libDir = opt[1]
c = 0
for arg in sys.argv:
- if (arg[0:2]=="-L"):
- removeArg2 = c+2 # +2 because we omitted the 1st and 2nd argument in the beginning!
+ if (arg[0:2]=="-L"):
+ removeArg2 = c+2 # +2 because we omitted the 1st and 2nd argument in the beginning!
if (removeArg >= 0):
dummy = sys.argv.pop(removeArg)