Changeset 95


Ignore:
Timestamp:
11/08/05 11:36:19 (18 years ago)
Author:
bas
Message:

distro:

  • Setup.py is generated by configure
  • Added --with-pbsdir=PATH option to configure
Location:
trunk/pbs_swig/distro
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/pbs_swig/distro/Makefile.in

    r86 r95  
    55exec_prefix=$(PREFIX)
    66BINDIR=$(PREFIX)/bin
     7PBSLIB=@pbspath@
     8
     9
    710DOCDIR=/usr/share/doc/pbs-python
    811EXAMPLES=$(DOCDIR)/examples
  • trunk/pbs_swig/distro/configure

    r64 r95  
    272272PACKAGE_BUGREPORT=
    273273
    274 ac_unique_file="Makefile.in"
    275 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS pyexecdir PYTHON PYTHON_VERSION PYTHON_PREFIX PYTHON_EXEC_PREFIX PYTHON_PLATFORM pythondir pkgpythondir pkgpyexecdir LIBOBJS LTLIBOBJS'
     274ac_unique_file="src/pbs.py"
     275ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS pyexecdir pbspath PYTHON PYTHON_VERSION PYTHON_PREFIX PYTHON_EXEC_PREFIX PYTHON_PLATFORM pythondir pkgpythondir pkgpyexecdir LIBOBJS LTLIBOBJS'
    276276ac_subst_files=''
    277277
     
    780780
    781781  cat <<\_ACEOF
     782
     783Optional Packages:
     784  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
     785  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
     786
     787  --with-pbsdir=PATH    directory that contains the torque libraries
    782788
    783789_ACEOF
     
    12231229
    12241230
     1231# Check whether --with-pbsdir or --without-pbsdir was given.
     1232if test "${with_pbsdir+set}" = set; then
     1233  withval="$with_pbsdir"
     1234  case "${withval}" in
     1235        *) pbspath="${withval}" ;;
     1236  esac
     1237else
     1238  pbspath=""
     1239
     1240fi;
     1241
     1242
     1243
    12251244
    12261245        # Find any Python interpreter.
     
    13411360
    13421361
    1343           ac_config_files="$ac_config_files Makefile"
     1362                    ac_config_files="$ac_config_files Makefile setup.py"
    13441363cat >confcache <<\_ACEOF
    13451364# This file is a shell script that caches the results of configure
     
    18931912  # Handling of arguments.
    18941913  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
     1914  "setup.py" ) CONFIG_FILES="$CONFIG_FILES setup.py" ;;
    18951915  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
    18961916echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
     
    19771997s,@LIBS@,$LIBS,;t t
    19781998s,@pyexecdir@,$pyexecdir,;t t
     1999s,@pbspath@,$pbspath,;t t
    19792000s,@PYTHON@,$PYTHON,;t t
    19802001s,@PYTHON_VERSION@,$PYTHON_VERSION,;t t
  • trunk/pbs_swig/distro/configure.in

    r64 r95  
    1 AC_INIT(Makefile.in)
     1AC_INIT(src/pbs.py)
    22AC_SUBST(prefix)
    33AC_SUBST(exec_prefix)
    44AC_SUBST(pyexecdir)
     5AC_SUBST(pbspath)
     6
     7
     8AC_ARG_WITH(pbsdir,
     9
     10  --with-pbsdir=PATH    directory that contains the torque libraries],
     11
     12  [case "${withval}" in
     13        *) pbspath="${withval}" ;;
     14  esac],
     15
     16  [pbspath=""]
     17)dnl
    518
    619AM_PATH_PYTHON
     
    821AC_OUTPUT(
    922        Makefile
     23        setup.py
    1024        )
  • trunk/pbs_swig/distro/setup.py

    r90 r95  
    55import sys
    66import os
     7#from pbslibdir import PBS_LIB_DIR
     8PBS_LIB_DIR='bas'
    79
    810from distutils.core import setup, Extension
    911
    10 # The location of the pbs libraries. If left blank
    11 # then we try to find out where the libraries are
     12# Libs required by this package
    1213#
    13 PBS_LIB_DIR=''
    1414LIBS = ['log', 'net', 'pbs']
    1515
Note: See TracChangeset for help on using the changeset viewer.