Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gajim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Erik Huelsmann
gajim
Commits
a3f6b82a
Commit
a3f6b82a
authored
16 years ago
by
Yann Leboulanger
Browse files
Options
Downloads
Patches
Plain Diff
fix docutils installation under windows. css file was not included in library.zip. Fixes #4495
parent
b00b1ce0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
setup_win32.py
+26
-16
26 additions, 16 deletions
setup_win32.py
src/gajim.py
+4
-0
4 additions, 0 deletions
src/gajim.py
with
30 additions
and
16 deletions
setup_win32.py
+
26
−
16
View file @
a3f6b82a
...
...
@@ -25,15 +25,34 @@ import glob
import
sys
import
os
docutils_files
=
[]
def
fill_docutils_files
(
folder
,
base
=
u
'
docutils
'
):
docutils_files
.
append
((
base
,
glob
.
glob
(
os
.
path
.
join
(
folder
,
base
,
'
*.pyc
'
))))
for
path
in
os
.
listdir
(
os
.
path
.
join
(
folder
,
base
)):
if
os
.
path
.
isdir
(
os
.
path
.
join
(
folder
,
base
,
path
)):
fill_docutils_files
(
folder
,
base
=
os
.
path
.
join
(
base
,
path
))
try
:
import
docutils.readers
import
docutils.writers.html4css1
import
docutils.languages
except
ImportError
:
pass
else
:
fill_docutils_files
(
os
.
path
.
join
(
sys
.
prefix
,
'
Lib
'
,
'
site-packages
'
))
docutils_files
.
append
((
os
.
path
.
join
(
'
docutils
'
,
'
writers
'
,
'
html4css1
'
),
glob
.
glob
(
os
.
path
.
join
(
sys
.
prefix
,
'
Lib
'
,
'
site-packages
'
,
'
docutils
'
,
'
writers
'
,
'
html4css1
'
,
'
*.css
'
))))
sys
.
path
.
append
(
'
src
'
)
# Use local gtk folder instead of the one in PATH that is not latest gtk
if
'
gtk
'
in
os
.
listdir
(
'
.
'
):
sys
.
path
.
append
(
'
gtk/bin
'
)
includes
=
[
'
encodings
'
,
'
encodings.utf-8
'
,]
opts
=
{
'
py2exe
'
:
{
'
includes
'
:
'
pango,atk,gobject,cairo,pangocairo,gtk.keysyms,encodings,encodings.*,docutils.readers.*,docutils.writers.html4css1
'
,
# ConfigParser,UserString,roman are needed for docutils
'
includes
'
:
'
pango,atk,gobject,cairo,pangocairo,gtk.keysyms,encodings,encodings.*,ConfigParser,UserString,roman
'
,
'
dll_excludes
'
:
[
'
iconv.dll
'
,
'
intl.dll
'
,
'
libatk-1.0-0.dll
'
,
'
libgdk_pixbuf-2.0-0.dll
'
,
'
libgdk-win32-2.0-0.dll
'
,
...
...
@@ -43,20 +62,12 @@ opts = {
'
libpangowin32-1.0-0.dll
'
,
'
libcairo-2.dll
'
,
'
libpangocairo-1.0-0.dll
'
,
'
libpangoft2-1.0-0.dll
'
,
],
'
excludes
'
:
[
'
docutils
'
],
}
}
try
:
import
docutils.readers
except
ImportError
:
opts
[
'
py2exe
'
][
'
includes
'
]
=
\
opts
[
'
py2exe
'
][
'
includes
'
].
replace
(
'
,docutils.readers.*
'
,
''
)
try
:
import
docutils.writers.html4css1
except
ImportError
:
opts
[
'
py2exe
'
][
'
includes
'
]
=
\
opts
[
'
py2exe
'
][
'
includes
'
].
replace
(
'
,docutils.writers.html4css1
'
,
''
)
setup
(
name
=
'
Gajim
'
,
...
...
@@ -73,9 +84,8 @@ setup(
'
icon_resources
'
:
[(
1
,
'
data/pixmaps/gajim.ico
'
)]}],
options
=
opts
,
data_files
=
[(
'
.
'
,
glob
.
glob
(
'
src/gtkgui.glade
'
)),
(
'
.
'
,
glob
.
glob
(
'
src/history_manager.glade
'
)),
],
data_files
=
docutils_files
,
)
# vim: se ts=3:
This diff is collapsed.
Click to expand it.
src/gajim.py
+
4
−
0
View file @
a3f6b82a
...
...
@@ -57,6 +57,10 @@ if os.name == 'nt':
import
sys
if
os
.
name
==
'
nt
'
:
# needed for docutils
sys
.
path
.
append
(
'
.
'
)
import
logging
consoleloghandler
=
logging
.
StreamHandler
()
consoleloghandler
.
setLevel
(
1
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment