File: build-with-swig-4.1.patch

package info (click to toggle)
pyfltk 1.3.8%2Brepack-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,868 kB
  • sloc: python: 7,494; cpp: 351; perl: 55; makefile: 24
file content (25 lines) | stat: -rw-r--r-- 1,133 bytes parent folder | download
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
diff --git a/setup.py b/setup.py
index f6519bc..b7d6a5d 100755
--- a/setup.py
+++ b/setup.py
@@ -297,7 +297,7 @@ class PySwigCommand(distutils.cmd.Command):
 
   def run(self):
     """Run command."""
-    command = ['swig', '-w302', '-w312', '-w325', '-w362', '-w389', '-w401', '-w473', '-w509', '-I./swig', '-DFL_EXPORT', '-DPYTHON', '-DPYTHON3', '-py3', '-c++', '-python', '-shadow', '-fastdispatch', '-outdir', 'fltk', '-o', 'fltk/fltk_wrap.cpp', './swig/fltk.i']
+    command = ['swig', '-w302', '-w312', '-w325', '-w362', '-w389', '-w401', '-w473', '-w509', '-I./swig', '-DFL_EXPORT=', '-DPYTHON', '-DPYTHON3', '-c++', '-python', '-shadow', '-fastdispatch', '-outdir', 'fltk', '-o', 'fltk/fltk_wrap.cpp', './swig/fltk.i']
     pos = command.index('-I./swig')+1
     command[pos:pos] = self.include
     self.announce(
diff --git a/swig/fltk.i b/swig/fltk.i
index 958c9f8..14093f2 100644
--- a/swig/fltk.i
+++ b/swig/fltk.i
@@ -197,7 +197,6 @@ if sys.version > '3':
 %include Fl_Window.i
 %include Fl_Double_Window.i
 %include fl_draw.i
-%include Fl_Export.i
 %include Fl_Input_.i
 %include Fl_Input.i
 %include Fl_File_Input.i