added --noexts option for setup.py to avoid trying to build the C extensions
This commit is contained in:
parent
244335bc51
commit
45198cb48f
|
@ -3,6 +3,11 @@
|
|||
History
|
||||
-------
|
||||
|
||||
?.?.? (????-??-??)
|
||||
++++++++++++++++++
|
||||
|
||||
* Added --noexts option for setup.py to avoid trying to build the C extensions
|
||||
|
||||
0.2.2 (2014-03-27)
|
||||
++++++++++++++++++
|
||||
|
||||
|
|
|
@ -19,6 +19,12 @@ fuzzysearch is useful for finding approximate subsequence matches
|
|||
* Free software: `MIT license <LICENSE>`_
|
||||
* Documentation: http://fuzzysearch.rtfd.org.
|
||||
|
||||
Installation
|
||||
------------
|
||||
Just install using pip::
|
||||
|
||||
$ pip install fuzzysearch
|
||||
|
||||
Features
|
||||
--------
|
||||
|
||||
|
|
|
@ -4,9 +4,15 @@ Installation
|
|||
|
||||
At the command line::
|
||||
|
||||
$ easy_install fuzzysearch
|
||||
$ pip install fuzzysearch
|
||||
|
||||
Or, if you have virtualenvwrapper installed::
|
||||
|
||||
$ mkvirtualenv fuzzysearch
|
||||
$ pip install fuzzysearch
|
||||
$ pip install fuzzysearch
|
||||
|
||||
Installation should succeed even if building the C extensions fails. If not,
|
||||
you can force the installation to skip building the extensions::
|
||||
|
||||
$ pip install fuzzysearch --noexts
|
||||
|
||||
|
|
12
setup.py
12
setup.py
|
@ -10,9 +10,13 @@ from distutils.command.build_ext import build_ext
|
|||
from distutils.errors import CCompilerError, DistutilsExecError, \
|
||||
DistutilsPlatformError
|
||||
|
||||
if sys.argv[-1] == 'publish':
|
||||
os.system('python setup.py sdist upload')
|
||||
sys.exit()
|
||||
# --noexts: don't try building the C extensions
|
||||
if '--noexts' in sys.argv[1:]:
|
||||
del sys.argv[sys.argv[1:].index('--noexts') + 1]
|
||||
noexts = True
|
||||
else:
|
||||
noexts = False
|
||||
|
||||
|
||||
def readfile(file_path):
|
||||
dir_path = os.path.dirname(os.path.abspath(__file__))
|
||||
|
@ -151,7 +155,7 @@ def try_building_extension():
|
|||
echo(line)
|
||||
|
||||
|
||||
if not (is_pypy or is_jython):
|
||||
if not (noexts or is_pypy or is_jython):
|
||||
try_building_extension()
|
||||
else:
|
||||
run_setup(False)
|
Loading…
Reference in New Issue