Skip to content

Commit

Permalink
Apply jython-ext.patch: Show a C-extension warning for Jython during …
Browse files Browse the repository at this point in the history
…installation.

Author: thijs
Reviewer: nick
Fixes: #415


git-svn-id: https://svn.pyamf.org/pyamf/trunk@2157 2dde4cc4-cf3c-0410-b1a3-a9b8ff274da5
  • Loading branch information
Thijs Triemstra committed Feb 10, 2009
1 parent 409af1d commit 0fbc1db
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,12 @@ def get_cpyamf_extensions():
return []

if sys.platform.startswith('java'):
print 80 * '*'
print 'WARNING:'
print '\tAn optional code optimization (C extension) could not be compiled.\n\n'
print '\tOptimizations for this package will not be available!\n\n'
print 'Compiling extensions is not supported on Jython'
print 80 * '*'
return []

ext_modules = []
Expand Down Expand Up @@ -147,7 +153,7 @@ def get_install_requirements():
setup(name = "PyAMF",
version = get_version(),
description = "AMF support for Python",
long_description = open('README.txt', 'rt').read(),
long_description = '',#open('README.txt', 'rt').read(),
url = "http://pyamf.org",
author = "The PyAMF Project",
author_email = "[email protected]",
Expand Down

0 comments on commit 0fbc1db

Please sign in to comment.