Skip to content

Commit

Permalink
Removed *.rc file from setup, even on Windows. Requires Windows SDK.
Browse files Browse the repository at this point in the history
I'm trying to get this to build with only Visual Studio C++ Express, which does not come with
rc.exe.  The rc file was really to get the versioninfo block into the Windows DLL, but since
the extension is .pyd, it really isn't used anyway.  (Installers may use it, though?)  In the
near future, I'll add the version manually using ctypes.
  • Loading branch information
mkleehammer committed Apr 19, 2009
1 parent e38c270 commit 4ac5e51
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ def main():
extra_link_args = None

if os.name == 'nt':
if not '--compiler=mingw32' in sys.argv:
# Windows native
files.append(join('src', 'pyodbc.rc'))
extra_compile_args = ['/W4']
# if not '--compiler=mingw32' in sys.argv:
# # Windows native
# files.append(join('src', 'pyodbc.rc'))
# extra_compile_args = ['/W4']
libraries.append('odbc32')

# extra_compile_args = ['/W4', '/Zi', '/Od']
Expand Down
2 changes: 1 addition & 1 deletion src/pyodbc.rc
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ BEGIN
BEGIN
BLOCK "040904b0"
BEGIN
VALUE "Copyright", "Copyright 20008 Michael Kleehammer"
VALUE "Copyright", "Copyright 2009 Michael Kleehammer"
VALUE "ProductName", "ODBC DB API 2.0 Module"
VALUE "ProductVersion", PRODUCT_VERSION_STRING(PYODBC_MAJOR,PYODBC_MINOR)
VALUE "FileDescription", "ODBC DB API 2.0 Module"
Expand Down

0 comments on commit 4ac5e51

Please sign in to comment.