Permalink
Browse files

Removed wininst target and related robot_postinstall.py script. #2222

  • Loading branch information...
1 parent 38fcc45 commit 773e2f06a6bc8d239b6325e14b98cd2870de6b67 @jussimalinen jussimalinen committed Dec 30, 2015
Showing with 3 additions and 97 deletions.
  1. +3 −11 BUILD.rst
  2. +0 −70 robot_postinstall.py
  3. +0 −3 setup.py
  4. +0 −13 tasks.py
View
@@ -116,15 +116,7 @@ Creating distributions
pip install robotframework --upgrade
-3. Windows installers
-
- - Create 32bit and 64bit variants on suitable machines/interpreters::
-
- invoke wininst
-
- - Manually upload to https://pypi.python.org/pypi/robotframework/.
-
-4. JAR distribution
+3. JAR distribution
- Create::
@@ -135,7 +127,7 @@ Creating distributions
java -jar dist/robotframework-$VERSION.jar --version
java -jar dist/robotframework-$VERSION.jar atest/testdata/misc/pass_and_fail.robot
-5. Upload JAR to Sonatype
+4. Upload JAR to Sonatype
- Sonatype offers a service where users can upload JARs and they will be synced
to the maven central repository. Below are the instructions to upload the JAR.
@@ -170,7 +162,7 @@ __ https://issues.sonatype.org/secure/Dashboard.jspa
__ http://central.sonatype.org/pages/working-with-pgp-signatures.html
__ https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+Usage+Guide
-6. User Guide
+5. User Guide
- Create package (updates also library docs)::
View
@@ -1,70 +0,0 @@
-"""Robot Framework post-install script for Windows.
-
-This script is executed as the last part of the graphical Windows installation
-and during un-installation started from `Add/Remote Programs`.
-
-For more details:
-http://docs.python.org/distutils/builtdist.html#postinstallation-script
-"""
-
-from os.path import join
-import os
-import sys
-
-
-SCRIPT_DIR = join(sys.prefix, 'Scripts')
-ROBOT_DIR = join(sys.prefix, 'Lib', 'site-packages', 'robot')
-SUCCESS = '''Robot Framework installation was successful!
-
-Add Python and Scripts directories to PATH to be able to use 'pybot'
-and 'rebot' start-up scripts from the command line. Also add Jython
-and IronPython installation directories to PATH to be able to use
-'jybot' and 'ipybot' scripts, respectively.
-
-Python directory: %s
-Scripts directory: %s
-''' % (sys.prefix, SCRIPT_DIR)
-
-
-def windows_install():
- """Generates jybot.bat and ipybot.bat scripts."""
- try:
- _create_script('jybot.bat', 'jython')
- _create_script('ipybot.bat', 'ipy')
- except Exception as err:
- print 'Running post-install script failed: %s' % err
- print 'Robot Framework start-up scripts may not work correctly.'
- return
- # Avoid "close failed in file object destructor" error when UAC disabled
- # https://github.com/robotframework/robotframework/issues/1331
- if sys.stdout.fileno() != -2:
- print SUCCESS
-
-
-def _create_script(name, interpreter):
- path = join(SCRIPT_DIR, name)
- runner = join(ROBOT_DIR, 'run.py')
- with open(path, 'w') as script:
- script.write('@echo off\n%s "%s" %%*\n' % (interpreter, runner))
- file_created(path)
-
-
-def windows_uninstall():
- """Deletes Jython compiled files (*$py.class).
-
- Un-installer deletes files only if installer has created them and also
- deletes directories only if they are empty. Thus compiled files created
- by Jython must be deleted separately.
- """
- for base, _, files in os.walk(ROBOT_DIR):
- for name in files:
- if name.endswith('$py.class'):
- try:
- os.remove(join(base, name))
- except OSError:
- pass
-
-
-if __name__ == '__main__':
- {'-install': windows_install,
- '-remove': windows_uninstall}[sys.argv[1]]()
View
@@ -64,9 +64,6 @@
SCRIPTS = [join('src', 'bin', s) for s in SCRIPTS + ['robot', 'rebot']]
if WINDOWS:
SCRIPTS = [s+'.bat' for s in SCRIPTS]
-if 'bdist_wininst' in sys.argv:
- SCRIPTS.append('robot_postinstall.py')
- LONG_DESCRIPTION = WINDOWS_DESCRIPTION
class custom_install_scripts(install_scripts):
View
@@ -167,19 +167,6 @@ def announce():
@task
-def wininst(remove_dist=False):
- """Create Windows installer.
-
- Args:
- remove_dist: Control is 'dist' directory initially removed or not.
- """
- clean(remove_dist, create_dirs=True)
- run('python setup.py bdist_wininst '
- '--bitmap robot.bmp --install-script robot_postinstall.py')
- announce()
-
-
-@task
def jar(jython_version='2.7.0', pyyaml_version='3.11', remove_dist=False):
"""Create JAR distribution.

0 comments on commit 773e2f0

Please sign in to comment.