[solved] PyPi Install on Windows fails due to wrong pathing
Hi. The package does not really work on Windows through PyPi, because the package is mainly written for Linux. I could finally install it, but then it fails calling the .py script. Fixing is not overly complicated:
- The setup.py uses folders with "/asciidoc3". The leading "/" is throwing an error. The path operations do not need leading or trailing slashes of any kind. The os.path is clever enough on its own, to build the proper path. See posixpath or ntpath for more info. Line 45 in setup.py is one of the occurences.
- the postinstall.py line 41, the ad3_location is generated wrong on Windows. Seems, that the path separator is not covered in a way, that the postinstall can copy the files it needs. My variable was for instance: 'c:\users\XXX\appdata\local\continuum\anaconda3\lib\site-packages\asciidoc3-3.0.2b1-py3.7.egg'. But that sting would not open. What would be needed is: 'c:/users/XXX/appdata/local/continuum/anaconda3/lib/site-packages/asciidoc3-3.0.2b1-py3.7.egg'.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information