#8 Improvements to setup script, packaging

closed
None
5
2012-09-14
2006-07-25
No

I've adjusted the PyPE setup script to be able to
install PyPE as an rpm and as a standard windows
install, not just a Py2exe standalone app.

In order to do this I moved the PyPE source into a PyPE
package. I'll attach patches to the setup script and
the required changes to the package, and also a
resulting source archive.

Discussion

  • David Fraser

    David Fraser - 2006-07-25

    patches to setup.py

     
  • David Fraser

    David Fraser - 2006-07-25

    Logged In: YES
    user_id=221678

    I renamed the windows script from pype.pyw to pyperun.pyw to
    avoid case problems and conflicts with PyPE package

     
  • David Fraser

    David Fraser - 2006-07-25

    renamed pype.pyw to pyperun.pyw

     
  • David Fraser

    David Fraser - 2006-07-25

    Logged In: YES
    user_id=221678

    I also moved the following files to the PyPE subdirectory
    and added an init.py:
    configuration.py
    parsers.py
    pype.py
    test_parser.py
    STCStyleEditor.py
    StyleSetter.py
    icons and plugins subdirectory

    Attached is the patch with the required changes after the
    move and the new init.py

     
  • David Fraser

    David Fraser - 2006-07-25

    changes after moving into package

     
  • David Fraser

    David Fraser - 2006-07-25

    Logged In: YES
    user_id=221678

    Also attached the resulting tar.gz file (.zip can also be
    produced) for simplicity of seeing what I've done

    Just realised this should probably have gone under patches
    but hopefully will be seen here...

     
  • David Fraser

    David Fraser - 2006-07-25

    source archive of resulting package

     
  • David Fraser

    David Fraser - 2006-07-25

    repackaged 2.6 tarball

     
  • David Fraser

    David Fraser - 2006-07-25

    Logged In: YES
    user_id=221678

    Rats, didn't see the 2.6 release...

    I'll attach a new tarball with an updated version

    This includes some fixes particular to 2.6 - you couldn't
    run the setup script if it wasn't running with a DISPLAY etc

    this now includes a MANIFEST.in to ensure that source
    tarballs contain all the required files (and thus bdist_rpm
    works)

     
  • Josiah Carlson

    Josiah Carlson - 2006-07-29

    Logged In: YES
    user_id=341410

    Sorry I didn't get back to you earlier. I saw the original
    submission (via email) and thought "that's probably a good
    idea, I'll wait until he submits all of the stuff", then
    sourceforge didn't bother to send me any of your comments.

    I'll attempt to merge in sufficient changes to make
    everything work.

     
  • Josiah Carlson

    Josiah Carlson - 2006-07-29

    Logged In: YES
    user_id=341410

    I'm noticing a few issues with regards to the PyPE package
    and how it expects to be run. Say, for example, in the
    plugins/browser.py . Your patch presumes that the
    configuration module is available via PyPE.configuration in
    sys.modules. This would only be the case if PyPE was run as
    'from PyPE import pype;pype.main()' or its equivalent.
    Running PyPE as 'python pype.py(w)', as I would presume is
    the standard method, would cause the browser, and ultimately
    PyPE, to fail to load.

    I'll see what I can do about getting setup.py working for
    all platforms and a few other bits, but the PyPE package
    seems like a gratuitous change.

     
  • Josiah Carlson

    Josiah Carlson - 2006-07-29

    Logged In: YES
    user_id=341410

    I haven't been able to get the bdist_wininst distutils
    creation to produce anything that anyone would want to
    install, so I'm explicitly removing support for it in PyPE's
    setup.py. Do you know, or have you tried bdist_rpm to see
    if it produces something usable? If it does anything like
    the bdist_wininst does, then it is also unusable.

     
  • Josiah Carlson

    Josiah Carlson - 2006-07-31

    Logged In: YES
    user_id=341410

    Are the changes in PyPE 2.6.1 sufficient for your needs?

     
  • Josiah Carlson

    Josiah Carlson - 2006-08-06

    Logged In: YES
    user_id=341410

    Changing feature request to pending. In 7 days if the OP
    does not respond, this item will be closed automatically as
    presumed satisfied.

     
  • SourceForge Robot

    Logged In: YES
    user_id=1312539

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 7 days (the time period specified by
    the administrator of this Tracker).

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks