1
1
.. default-role :: code
2
2
3
- The Pymssql Project is Being Discontinued
4
- ==========================================
3
+ The Original Pymssql Project Has Been Discontinued
4
+ ==================================================
5
+
6
+ The last working released version may or may not work with
7
+ Python 3.7, but does not with with 3.8. To install it, run
8
+ `pip install "pymssql<3.0" `.
9
+
10
+ This repository has been modified to work with both Python 3.7
11
+ and 3.8. To build pymssql-linux, you should have:
12
+
13
+ * python >= 3.7 including development files.
14
+ * Cython >= 0.29
15
+ * FreeTDS >= 0.95 including development files. Research your
16
+ OS-specific distribution channels. (Archlinux: freetds,
17
+ Debian: freetds-common, freetds-dev)
18
+ * gcc
19
+
20
+ To build, simply run `python setup.py build ` in the project
21
+ root directory.
5
22
6
- To install the last working released version, install with a version specifier like "pymssql<3.0".
7
- E.g. `pip install "pymssql<3.0" `
23
+ It is possible to build a binary wheel package of pymssql-linux
24
+ that pulls in and compiles a known-working version of FreeTDS.
25
+ This option may become necessary if FreeTDS code evolves in a
26
+ way that breaks compatibility with pymssql-linux, the development
27
+ of which is, after all, frozen. Follow the binary wheel build
28
+ instructions below in this case.
8
29
9
- Details and alternatives at: https://github.com/pymssql/pymssql/issues/668
30
+ Details about the discontinuation of the original project
31
+ and a discussion of alternatives to pymssql can be found
32
+ at: https://github.com/pymssql/pymssql/issues/668
33
+
34
+ This fork is being maintained because pymssql works with
35
+ older SQL Server versions that use deprecated TLS versions
36
+ 1.0 and 1.1. Alternatives that utilize Microsoft's native
37
+ SQL driver require the installation of version 11.0 of the
38
+ driver, which is difficult to achieve cleanly due to
39
+ multiple dependencies on deprecated library versions.
10
40
11
41
pymssql - DB-API interface to Microsoft SQL Server
12
42
==================================================
@@ -23,20 +53,26 @@ There is a Google Group for discussion at:
23
53
24
54
https://groups.google.com/forum/?fromgroups#!forum/pymssql
25
55
26
- Building
27
- ========
56
+ Building Binary Wheels
57
+ ======================
28
58
29
59
To build manylinux Python wheels, ensure you have docker and docker-compose
30
60
installed, and run the following in the project root directory:
31
61
32
- .. code ::
62
+ .. code-block :: bash
63
+
33
64
docker-compose up -d
34
65
docker exec pymssql-linux_x86_x64_1 ./io/dev/build_manylinux_wheels.sh
35
66
docker exec pymssql-linux_i686_1 ./io/dev/build_manylinux_wheels.sh
36
67
docker-compose down
37
68
38
69
To run unit tests, run the following before bringing the containers down:
39
70
40
- .. code ::
71
+ .. code-block :: bash
72
+
41
73
docker exec pymssql-linux_x86_x64_1 ./io/dev/test_manylinux_wheels.sh
42
74
docker exec pymssql-linux_i686_1 ./io/dev/test_manylinux_wheels.sh
75
+
76
+ If the build suceeds, the `dist ` directory in the project root will
77
+ contain .whl files for Python versions >= 3.7. These can be installed
78
+ by running `pip install <filename.whl> `.
0 commit comments