adang1345 / delvewheel

Self-contained Python wheels for Windows
MIT License
116 stars 12 forks source link

Bug with absolute_import #8

Closed asfixia closed 3 years ago

asfixia commented 3 years ago

from future import absolute_import

asfixia commented 3 years ago
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Users\danilo\AppData\Local\Dinamica EGO 5\PyEnvironment\Lib\site-packages\rasterio\__init__.py", line 25
    from __future__ import absolute_import
    ^
SyntaxError: from __future__ imports must occur at the beginning of the file
adang1345 commented 3 years ago

The bug is that the patch to __init__.py is inserted prior to the from __future__ import. I will work on a solution to ensure that the patch is placed after the from __future__ import.