Source

sqlalchemy / setup.py

Diff from to

File setup.py

     except ImportError:  # Python 2
         from distutils.command.build_py import build_py
 
-basedir, fname = os.path.split(__file__)
-
 cmdclass = {}
 pypy = hasattr(sys, 'pypy_version_info')
 jython = sys.platform.startswith('java')
 
 ext_modules = [
     Extension('sqlalchemy.cprocessors',
-           sources=[os.path.join(basedir,
-                        'lib/sqlalchemy/cextension/processors.c')]),
+           sources=['lib/sqlalchemy/cextension/processors.c']),
     Extension('sqlalchemy.cresultproxy',
-           sources=[os.path.join(basedir,
-                        'lib/sqlalchemy/cextension/resultproxy.c')]),
+           sources=['lib/sqlalchemy/cextension/resultproxy.c']),
     Extension('sqlalchemy.cutils',
-           sources=[os.path.join(basedir,
-                        'lib/sqlalchemy/cextension/utils.c')])
+           sources=['lib/sqlalchemy/cextension/utils.c'])
     ]
 
 ext_errors = (CCompilerError, DistutilsExecError, DistutilsPlatformError)
 
 def find_packages(location):
     packages = []
-    location = os.path.join(basedir, location)
     for pkg in ['sqlalchemy']:
         for _dir, subdirectories, files in (
                 os.walk(os.path.join(location, pkg))
           author_email="mike_mp@zzzcomputing.com",
           url="http://www.sqlalchemy.org",
           packages=find_packages('lib'),
-          package_dir={'': os.path.join(basedir, 'lib')},
+          package_dir={'': 'lib'},
           license="MIT License",
           cmdclass=cmdclass,