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

« back to all changes in this revision

Viewing changes to debian/patches/0001-feature-fix-the-documentation-build.patch

  • Committer: Bazaar Package Importer
  • Author(s): Picca Frédéric-Emmanuel
  • Date: 2011-04-07 22:41:50 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20110407224150-kkhppnq7rp2c8b3c
Tags: 2.1.0-1
* Imported Upstream version 2.1.0
* debian/patches/
  - 0001-features-01_bts614083.patch (delete)
  - 0001-feature-fix-the-documentation-build.patch (new)
* add and install the sift desktop file
* recommends python-dicom (Closes: #621421)
  thanks Junqian Gordon Xu for the report

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
From: =?UTF-8?q?Picca=20Fr=C3=A9d=C3=A9ric-Emmanuel?= <picca@synchrotron-soleil.fr>
 
2
Date: Thu, 7 Apr 2011 22:27:09 +0200
 
3
Subject: feature fix the documentation build
 
4
 
 
5
this patch was provided by the upstream and force python
 
6
to reload the guiqwt module when generating the documentation
 
7
that way there is no more fail to import _ext module.
 
8
---
 
9
 setup.py |    1 +
 
10
 1 files changed, 1 insertions(+), 0 deletions(-)
 
11
 
 
12
diff --git a/setup.py b/setup.py
 
13
index 3e6e681..f8d52b3 100644
 
14
--- a/setup.py
 
15
+++ b/setup.py
 
16
@@ -43,6 +43,7 @@ def get_package_data(name, extlist):
 
17
 
 
18
 LIBNAME = 'guiqwt'
 
19
 from guiqwt import __version__ as version
 
20
+del sys.modules[LIBNAME] # forcing Python to reload module (see build_doc.run)
 
21
 
 
22
 DESCRIPTION = 'guiqwt is a set of tools for curve and image plotting (extension to PyQwt 5.2)'
 
23
 LONG_DESCRIPTION = ''
 
24
--