Getting Dev environment to match Production

I’ve been working on a new integration, and after a lot of testing locally - have found out that when deployed it doesn’t work.
It uses shapely 1.7.1 which can’t seem to be installed.

I know getting those binaries added is going to be a no - but is there a way to prevent this happening, so I can catch the error before I invest days in the dev environment?

2020-10-01 06:52:07 ERROR (SyncWorker_10) [homeassistant.util.package] Unable to install package trackimo==0.1.28: ERROR: Command errored out with exit status 1:
     command: /usr/local/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-f44y9zwa/shapely/'"'"'; __file__='"'"'/tmp/pip-install-f44y9zwa/shapely/'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);'"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-grq8qw2n
         cwd: /tmp/pip-install-f44y9zwa/shapely/
    Complete output (11 lines):
    Failed `CDLL(`
    Failed `CDLL(`
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-f44y9zwa/shapely/", line 85, in <module>
        from shapely._buildcfg import geos_version_string, geos_version, \
      File "/tmp/pip-install-f44y9zwa/shapely/shapely/", line 169, in <module>
        lgeos = load_dll('geos_c',
      File "/tmp/pip-install-f44y9zwa/shapely/shapely/", line 162, in load_dll
        raise OSError(
    OSError: Could not find library geos_c or load any of its variants ['', '']