Commit 655041eb authored by Stefan Behnel's avatar Stefan Behnel

fix target directory for Lexicon.pickle (do it right this time)

parent c6061fa4
from distutils.core import setup from distutils.core import setup
from distutils.sysconfig import get_python_lib from distutils.sysconfig import get_python_lib
import os import os, sys
from Cython.Compiler.Version import version from Cython.Compiler.Version import version
compiler_dir = os.path.join(get_python_lib(prefix=''), 'Cython/Compiler') setup_args = {}
if sys.version_info < (2,4):
compiler_dir = os.path.join(get_python_lib(prefix=''), 'Cython/Compiler')
setup_args['data_files'] = [
{compiler_dir : ['Cython/Compiler/Lexicon.pickle']}]
else:
setup_args['package_data'] = {'Cython.Compiler' : ['Lexicon.pickle']}
if os.name == "posix": if os.name == "posix":
scripts = ["bin/cython"] scripts = ["bin/cython"]
...@@ -54,8 +61,6 @@ setup( ...@@ -54,8 +61,6 @@ setup(
'Cython.Mac', 'Cython.Mac',
'Cython.Plex' 'Cython.Plex'
], ],
package_data = { **setup_args
'Cython.Compiler' : ['Lexicon.pickle']
}
) )
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment