diff -r 7a10069855c4 setup.py
--- a/setup.py	Thu Jul 30 17:17:53 2009 -0700
+++ b/setup.py	Fri Sep 04 20:49:04 2009 -0600
@@ -48,21 +48,39 @@ object reference system, and a capabilit
 
         'packages': ["foolscap", "foolscap/slicers", "foolscap/logging",
                      "foolscap/appserver", "foolscap/test"],
-        'scripts': ["bin/flogtool", "bin/flappserver", "bin/flappclient"],
 }
+
+use_console_scripts = None
 
 try:
     # If setuptools is installed, then we'll add setuptools-specific
     # arguments to the setup args.
     import setuptools
 except ImportError:
-    pass
+    use_console_scripts = False
 else:
     setup_args['install_requires'] = ['twisted >= 2.4.0']
     setup_args['extras_require'] = { 'secure_connections' : ["pyOpenSSL"] }
     # note that pyOpenSSL-0.7 and recent Twisted causes unit test failures,
     # see bug #62
 
+    # Some old Linux distribution stripped the .egg-info files from
+    # some python packages. (Hardy and Lenny don't have this problem, nor
+    # does Fedora going back at least to Fedora 9.)
+    import platform
+    if platform.system() == 'Linux':
+        use_console_scripts = False
+    else:
+        use_console_scripts = True
+
+if use_console_scripts:
+    setup_args['entry_points'] = { 'console_scripts': [
+        'flogtool = foolscap.logging.cli:run_flogtool',
+        'flappserver = foolscap.appserver.cli:run_flappserver',
+        'flappclient = foolscap.appserver.client:run_flappclient',
+        ] }
+else:
+    setup_args['scripts'] = ["bin/flogtool", "bin/flappserver", "bin/flappclient"]
+
 if __name__ == '__main__':
     setup(**setup_args)
-
