Skip to content

Commit 24de23c

Browse files
committed
Move source code files to new src/ subdir.
Refs pymssql#391
1 parent 2176ac1 commit 24de23c

9 files changed

Lines changed: 4 additions & 4 deletions

File tree

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#sys.path.insert(0, os.path.abspath('.'))
2222

2323
def extract_version():
24-
with open(os.path.join(os.pardir, 'pymssql_version.h')) as f:
24+
with open(os.path.join(os.pardir, 'src', 'pymssql_version.h')) as f:
2525
content = f.read()
2626

2727
# Parse file content that looks like this:

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def fpath(*parts):
8888
import struct
8989

9090
def extract_version():
91-
with open(osp.join(ROOT, 'pymssql_version.h')) as f:
91+
with open(osp.join(ROOT, 'src', 'pymssql_version.h')) as f:
9292
content = f.read()
9393

9494
# Parse file content that looks like this:
@@ -389,12 +389,12 @@ def ext_modules():
389389
source_extension = 'pyx'
390390

391391
return [
392-
Extension('_mssql', ['_mssql.%s' % source_extension],
392+
Extension('_mssql', [osp.join('src', '_mssql.%s' % source_extension)],
393393
extra_compile_args = _extra_compile_args,
394394
include_dirs = include_dirs,
395395
library_dirs = library_dirs
396396
),
397-
Extension('pymssql', ['pymssql.%s' % source_extension],
397+
Extension('pymssql', [osp.join('src', 'pymssql.%s' % source_extension)],
398398
extra_compile_args = _extra_compile_args,
399399
include_dirs = include_dirs,
400400
library_dirs = library_dirs
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)