Desktop environment:
Windows 10 64-bit, ArcMap 10.3.1, Python 2.7 32-bit (installed by ArcMap)
Server environment:
Windows Server 2012 64-bit, ArcMap 10.3.1, ArcGIS for Server 10.3.1, Python 2.7 32-bit (installed by ArcMap), Python 2.7 64-bit (installed by ArcServer)
My custom GP tool script is calling a 3rd party set of open source python libraries that have been developed to work within Python 2.7.x 32-bit framework. The GP tool works as expected on my desktop PC. I would like to publish my custom GP tool as a service on my remote server with both ArcGIS for Server 10.3.1 and ArcMap 10.3.1 installed on it. I am well aware that ArcGIS for Server demands a 64-bit framework for Python, so my question is: what would be the best way to publish my custom script tool (working on my desktop PC) as a service to be served within a web application (i.e. GP widget) without encountering conflicts and errors?