As the complexity of the scanner driver, it is cumbersome to build and package the scanner driver.The paper takes a practical scanner driver as the example to describe the solution of automation build by using Python. This solution can promote the degree of automation greatly,at the same time it can ensure the speed and quality of scanner driver release.