Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
86a39d5a
Commit
86a39d5a
authored
Oct 10, 2004
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Un-break plpython build for non-Windows platforms.
parent
ea12f8e6
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
30 deletions
+15
-30
config/python.m4
config/python.m4
+5
-13
configure
configure
+6
-15
src/pl/plpython/Makefile
src/pl/plpython/Makefile
+4
-2
No files found.
config/python.m4
View file @
86a39d5a
#
# Autoconf macros for configuring the build of Python extension modules
#
# $PostgreSQL: pgsql/config/python.m4,v 1.
9 2004/10/06 09:20:40 momjian
Exp $
# $PostgreSQL: pgsql/config/python.m4,v 1.
10 2004/10/10 19:07:52 tgl
Exp $
#
# PGAC_PATH_PYTHON
...
...
@@ -29,24 +29,16 @@ else
AC_MSG_RESULT(no)
AC_MSG_ERROR([distutils module not found])
fi
AC_MSG_CHECKING([Python
installation directories
])
AC_MSG_CHECKING([Python
configuration directory
])
python_version=`${PYTHON} -c "import sys; print sys.version[[:3]]"`
python_prefix=`${PYTHON} -c "import sys; print sys.prefix"`
python_execprefix=`${PYTHON} -c "import sys; print sys.exec_prefix"`
python_configdir=`${PYTHON} -c "from distutils.sysconfig import get_python_lib as f; import os; print os.path.join(f(plat_specific=1,standard_lib=1),'config')"`
python_includespec=`${PYTHON} -c "import distutils.sysconfig; print '-I'+distutils.sysconfig.get_python_inc()"`
AC_SUBST(python_prefix)[]dnl
AC_SUBST(python_execprefix)[]dnl
AC_SUBST(python_version)[]dnl
AC_SUBST(python_configdir)[]dnl
AC_SUBST(python_includespec)[]dnl
AC_SUBST(python_version)[]dnl
# This should be enough of a message.
if test "$python_prefix" != "$python_execprefix"; then
AC_MSG_RESULT([$python_prefix/lib/python${python_version} and $python_execprefix/lib/python${python_version}])
else
AC_MSG_RESULT([$python_prefix/lib/python${python_version}])
fi
AC_MSG_RESULT([$python_configdir])
])# _PGAC_CHECK_PYTHON_DIRS
...
...
@@ -56,7 +48,7 @@ AC_DEFUN([PGAC_CHECK_PYTHON_EMBED_SETUP],
[AC_REQUIRE([_PGAC_CHECK_PYTHON_DIRS])
AC_MSG_CHECKING([how to link an embedded Python application])
python_libspec=`${PYTHON} -c "import distutils.sysconfig,string;
print
string.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS')))"`
python_libspec=`${PYTHON} -c "import distutils.sysconfig,string;
print '-lpython${python_version} '+
string.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS')))"`
AC_MSG_RESULT([${python_libspec}])
...
...
configure
View file @
86a39d5a
...
...
@@ -4235,28 +4235,21 @@ echo "${ECHO_T}no" >&6
echo
"
$as_me
: error: distutils module not found"
>
&2
;
}
{
(
exit
1
)
;
exit
1
;
}
;
}
fi
echo
"
$as_me
:
$LINENO
: checking Python
installation directories
"
>
&5
echo
$ECHO_N
"checking Python
installation directories
...
$ECHO_C
"
>
&6
echo
"
$as_me
:
$LINENO
: checking Python
configuration directory
"
>
&5
echo
$ECHO_N
"checking Python
configuration directory
...
$ECHO_C
"
>
&6
python_version
=
`
${
PYTHON
}
-c
"import sys; print sys.version[:3]"
`
python_prefix
=
`
${
PYTHON
}
-c
"import sys; print sys.prefix"
`
python_execprefix
=
`
${
PYTHON
}
-c
"import sys; print sys.exec_prefix"
`
python_configdir
=
`
${
PYTHON
}
-c
"from distutils.sysconfig import get_python_lib as f; import os; print os.path.join(f(plat_specific=1,standard_lib=1),'config')"
`
python_includespec
=
`
${
PYTHON
}
-c
"import distutils.sysconfig; print '-I'+distutils.sysconfig.get_python_inc()"
`
# This should be enough of a message.
if
test
"
$python_prefix
"
!=
"
$python_execprefix
"
;
then
echo
"
$as_me
:
$LINENO
: result:
$python_prefix
/lib/python
${
python_version
}
and
$python_execprefix
/lib/python
${
python_version
}
"
>
&5
echo
"
${
ECHO_T
}
$python_prefix
/lib/python
${
python_version
}
and
$python_execprefix
/lib/python
${
python_version
}
"
>
&6
else
echo
"
$as_me
:
$LINENO
: result:
$python_prefix
/lib/python
${
python_version
}
"
>
&5
echo
"
${
ECHO_T
}
$python_prefix
/lib/python
${
python_version
}
"
>
&6
fi
echo
"
$as_me
:
$LINENO
: result:
$python_configdir
"
>
&5
echo
"
${
ECHO_T
}
$python_configdir
"
>
&6
echo
"
$as_me
:
$LINENO
: checking how to link an embedded Python application"
>
&5
echo
$ECHO_N
"checking how to link an embedded Python application...
$ECHO_C
"
>
&6
python_libspec
=
`
${
PYTHON
}
-c
"import distutils.sysconfig,string;
print
string.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS')))"
`
python_libspec
=
`
${
PYTHON
}
-c
"import distutils.sysconfig,string;
print '-lpython
${
python_version
}
'+
string.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS')))"
`
echo
"
$as_me
:
$LINENO
: result:
${
python_libspec
}
"
>
&5
echo
"
${
ECHO_T
}${
python_libspec
}
"
>
&6
...
...
@@ -18897,11 +18890,9 @@ s,@perl_privlibexp@,$perl_privlibexp,;t t
s,@perl_useshrplib@,
$perl_useshrplib
,;t t
s,@perl_embed_ldflags@,
$perl_embed_ldflags
,;t t
s,@PYTHON@,
$PYTHON
,;t t
s,@python_prefix@,
$python_prefix
,;t t
s,@python_execprefix@,
$python_execprefix
,;t t
s,@python_version@,
$python_version
,;t t
s,@python_configdir@,
$python_configdir
,;t t
s,@python_includespec@,
$python_includespec
,;t t
s,@python_version@,
$python_version
,;t t
s,@python_libspec@,
$python_libspec
,;t t
s,@LIBOBJS@,
$LIBOBJS
,;t t
s,@HAVE_IPV6@,
$HAVE_IPV6
,;t t
...
...
src/pl/plpython/Makefile
View file @
86a39d5a
# $PostgreSQL: pgsql/src/pl/plpython/Makefile,v 1.1
5 2004/10/06 09:20:41 momjian
Exp $
# $PostgreSQL: pgsql/src/pl/plpython/Makefile,v 1.1
6 2004/10/10 19:07:55 tgl
Exp $
subdir
=
src/pl/plpython
top_builddir
=
../../..
...
...
@@ -12,10 +12,12 @@ ifneq (,$(wildcard $(python_configdir)/libpython*$(DLSUFFIX)*))
shared_libpython
=
yes
endif
# Convert backslashed paths to normal slashes
# Windows needs to convert backslashed paths to normal slashes,
# and we have to remove -lpython from libspec since we are building our own
ifeq
($(PORTNAME), win32)
shared_libpython
=
yes
python_includespec
:=
$(
subst
\,
/,
$(python_includespec)
)
python_libspec
:=
$(
subst
-lpython
$(python_version)
,,
$(python_libspec)
)
endif
# Darwin (OS X) has its own ideas about how to do this.
...
...
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