You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I update these two functions it downloads the correct Tailwind CLI executable:
defget_system_and_machine(self) ->Tuple[str, str]:
"""Get the system and machine name."""system=platform.system().lower()
ifsystem=="darwin": # pragma: no coversystem="macos"machine=platform.machine().lower()
ifmachine=="x86_64"or'amd64': # pragma: no covermachine="x64"elifmachine=="aarch64": # pragma: no covermachine="arm64"return (system, machine)
defget_download_url(self) ->str:
"""Get the download url for the Tailwind CSS CLI."""system, machine=self.get_system_and_machine()
extension='.exe'ifsystem=='windows'else''return (
"https://github.com/tailwindlabs/tailwindcss/releases/download/"f"v{self.tailwind_version}/tailwindcss-{system}-{machine}{extension}"
)
With the changes being:
Add or 'amd64' to if machine == "x86_64" or 'amd64':
Add extension = '.exe' if system == 'windows' else ''
Update the f-string to include the {extension}
I'm using Python 3.11.3 64-bit on Windows 11 with Django 4.2.4
The text was updated successfully, but these errors were encountered:
@rtr1 I plan to work on this issue on Friday. I would be happy to see someone let the test suite run on Windows, as I only have Macs and Linux machines at hand. Could you do this for me?
@oryon-dominik I think you are referencing to the same topic as Jeff did in his discussion entry (#65). I plan to add the functionality to reference an externally installed CLI. I will create a seperate ticket for this.
Hello. When I run
python .\manage.py tailwind runserver
I get the message:Which errors with 404 not found. The download link in Tailwind Labs repository is:
With the differences being:
x64
instead ofamd64
.exe
suffixIf I update these two functions it downloads the correct Tailwind CLI executable:
With the changes being:
or 'amd64'
toif machine == "x86_64" or 'amd64':
extension = '.exe' if system == 'windows' else ''
{extension}
I'm using Python 3.11.3 64-bit on Windows 11 with Django 4.2.4
The text was updated successfully, but these errors were encountered: