Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
99ae41eb
Commit
99ae41eb
authored
Aug 22, 2003
by
Chris McDonough
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Perform more indirect test for expat support which shouldn't give Mac OS X users gried.
parent
5e344e26
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
13 deletions
+14
-13
configure
configure
+3
-2
inst/configure.py
inst/configure.py
+11
-11
No files found.
configure
View file @
99ae41eb
#!/bin/sh
# Zope configure script
# $Id: configure,v 1.1
4 2003/07/08 19:27:16
chrism Exp $
# $Revision: 1.1
4
$
# $Id: configure,v 1.1
5 2003/08/22 14:06:01
chrism Exp $
# $Revision: 1.1
5
$
#####################################################################
# BEGIN EDITABLE PARAMETERS #
...
...
@@ -51,6 +51,7 @@ usage()
echo
" --prefix specify an installation path for binary data"
echo
" --build-base specify a temporary path for build files"
echo
" --ignore-largefile ignore large file support warnings"
echo
" --ignore-expat ignore warnings about expat/pyexpat"
echo
" --ignore-zlib ignore warnings about zlib"
echo
" --optimize optimize compiled Python bytecode"
echo
" --no-compile Dont compile Python bytecode"
...
...
inst/configure.py
View file @
99ae41eb
...
...
@@ -38,12 +38,12 @@ def main():
MAKEFILE
=
open
(
os
.
path
.
join
(
BASE_DIR
,
'inst'
,
IN_MAKEFILE
)).
read
()
REQUIRE_LF_ENABLED
=
1
REQUIRE_ZLIB
=
1
REQUIRE_
PY
EXPAT
=
1
REQUIRE_EXPAT
=
1
INSTALL_FLAGS
=
''
DISTUTILS_OPTS
=
''
try
:
longopts
=
[
'help'
,
'ignore-largefile'
,
'ignore-zlib'
,
'ignore-
py
expat'
,
'prefix='
,
'ignore-expat'
,
'prefix='
,
'build-base='
,
'optimize'
,
'no-compile'
,
'quiet'
]
opts
,
args
=
getopt
.
getopt
(
sys
.
argv
[
1
:],
'h'
,
longopts
)
except
getopt
.
GetoptError
,
v
:
...
...
@@ -60,8 +60,8 @@ def main():
REQUIRE_LF_ENABLED
=
0
if
o
==
'--ignore-zlib'
:
REQUIRE_ZLIB
=
0
if
o
==
'--ignore-
py
expat'
:
REQUIRE_
PY
EXPAT
=
0
if
o
==
'--ignore-expat'
:
REQUIRE_EXPAT
=
0
if
o
==
'--optimize'
:
INSTALL_FLAGS
=
'--optimize=1 --no-compile'
if
o
==
'--no-compile'
:
...
...
@@ -76,8 +76,8 @@ def main():
test_largefile
()
if
REQUIRE_ZLIB
:
test_zlib
()
if
REQUIRE_
PY
EXPAT
:
test_
py
expat
()
if
REQUIRE_EXPAT
:
test_expat
()
out
(
' - Zope top-level binary directory will be %s.'
%
PREFIX
)
if
INSTALL_FLAGS
:
out
(
' - Distutils install flags will be "%s"'
%
INSTALL_FLAGS
)
...
...
@@ -121,8 +121,8 @@ Options:
--ignore-largefile allow configuration to proceed without
Python large file support.
--ignore-
pyexpat allow configuration to proceed if the py
expat
module is not found.
--ignore-
expat allow configuration to proceed if the
expat
XML parsing
module is not found.
--optimize compile Python files as .pyo files
instead of as .pyc files
...
...
@@ -142,9 +142,9 @@ files by using '--prefix', for example: '--prefix=$HOME/zope'.
)
print
usage
def
test_
py
expat
():
def
test_expat
():
try
:
import
py
expat
import
xml.parsers.
expat
except
ImportError
:
print
(
"""
...
...
@@ -164,7 +164,7 @@ Clark's expat libraries and development packages (look for libexpat.so and
expat.h). Typically, these come as part of your operating system's libexpat
and libexpat-dev packages, respectively.
Run the configure script with the --ignore-
py
expat option to prevent this
Run the configure script with the --ignore-expat option to prevent this
warning with the understanding that some Zope features may not work properly
until you've installed the pyexpat module.
"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment