Menu

contributed setup.py...

2002-11-26
2002-11-26
  • Sam Tannous

    Sam Tannous - 2002-11-26

    """
    If you need help, run "python setup.py --help" and "python setup.py --help-commands"

    for windows 2k (with Cygwin gcc), you need
    "python setup.py build --compiler=mingw32"

    for all other UNIX building, simply "python setup.py build" will suffice

    this builds various packages

        python setup.py bdist          tar.gz file
        python setup.py bdist_wininst  win 2k install wizard exe
        python setup.py bdist_dumb  a tar.gz file to be untarred from /
        python setup.py bdist_rpm   two RPMs for Linux

    """
    import sys
    from distutils import sysconfig
    from distutils.core import setup
    from distutils.extension import Extension

    prefix = sysconfig.PREFIX
    inc_dirs = [prefix + "/include"]
    lib_dirs = [prefix + "/lib"]
    libs = ["pvm3","pvmtrc","fpvm3","gpvm3"]

    setup(name="pypvm",
          version="0.92",
          description="Python Wrapper for PVM",
          author="X",
          author_email="x@x.org",
          url="http://pypvm.sourceforge.net/",
          py_modules = ['pypvm'],
          ext_modules = [Extension(name="pypvm_core",
                     sources =["pypvm_coremodule.c"],
                     include_dirs = inc_dirs,
                     libraries = libs,
                     library_dirs = lib_dirs)]
          )
       

     
    • Sam Tannous

      Sam Tannous - 2002-11-26

      The spacing is off but I think you get the idea..
      I contributed this setup.py because I was having
      trouble getting pypvm_core.so compiled properly.

      -Sam

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.