~facundo/encuentro/trunk

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Facundo Batista
  • Date: 2013-06-01 20:21:20 UTC
  • mto: This revision was merged to the branch mainline in revision 178.
  • Revision ID: facundo@taniquetil.com.ar-20130601202120-g2jqnvz56a2nmijj
Have a man page.

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
            os.makedirs(self._custom_apport_dir)
76
76
        shutil.copy("source_encuentro.py", self._custom_apport_dir)
77
77
 
 
78
        # man directory
 
79
        if not os.path.exists(self._custom_man_dir):
 
80
            os.makedirs(self._custom_man_dir)
 
81
        shutil.copy("man/encuentro.1", self._custom_man_dir)
 
82
 
78
83
        # version file
79
84
        shutil.copy("version.txt", self.install_lib)
80
85
 
88
93
        apps_dir = os.path.join(self.prefix, "share", "applications")
89
94
        apport_dir = os.path.join(self.prefix, "share",
90
95
                                  "apport", "package-hooks")
 
96
        man_dir = os.path.join(self.prefix, "share", "man", "man1")
91
97
 
92
98
        # if we have 'root', put the building path also under it (used normally
93
99
        # by pbuilder)
97
103
            build_dir = os.path.join(self.root, data_dir[1:])
98
104
            apps_dir = os.path.join(self.root, apps_dir[1:])
99
105
            apport_dir = os.path.join(self.root, apport_dir[1:])
 
106
            man_dir = os.path.join(self.root, man_dir[1:])
100
107
 
101
108
        # change the lib install directory so all package files go inside here
102
109
        self.install_lib = build_dir
105
112
        self._custom_data_dir = data_dir
106
113
        self._custom_apps_dir = apps_dir
107
114
        self._custom_apport_dir = apport_dir
 
115
        self._custom_man_dir = man_dir
108
116
 
109
117
 
110
118
setup(