~ubuntu-branches/ubuntu/trusty/guiqwt/trusty

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From: =?UTF-8?q?Picca=20Fr=C3=A9d=C3=A9ric-Emmanuel?= <picca@synchrotron-soleil.fr>
Date: Thu, 7 Apr 2011 22:27:09 +0200
Subject: feature fix the documentation build

this patch was provided by the upstream and force python
to reload the guiqwt module when generating the documentation
that way there is no more fail to import _ext module.
---
 setup.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/setup.py b/setup.py
index 3e6e681..f8d52b3 100644
--- a/setup.py
+++ b/setup.py
@@ -43,6 +43,7 @@ def get_package_data(name, extlist):
 
 LIBNAME = 'guiqwt'
 from guiqwt import __version__ as version
+del sys.modules[LIBNAME] # forcing Python to reload module (see build_doc.run)
 
 DESCRIPTION = 'guiqwt is a set of tools for curve and image plotting (extension to PyQwt 5.2)'
 LONG_DESCRIPTION = ''
--